From: | Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Sun, 6 Jan 2008 08:55:53 -0800 (PST) |
swildner 2008/01/06 08:55:53 PST DragonFly src repository Modified files: sys/bus/firewire firewire.c fwdev.c fwdma.c fwmem.c fwohci.c sys/bus/pci pci.c sys/dev/disk/ata atapi-cd.c atapi-fd.c atapi-tape.c sys/dev/disk/isp isp_pci.c sys/dev/disk/mpt mpt_pci.c sys/dev/disk/nata ata-raid.c sys/dev/disk/wt wt.c sys/dev/drm drm_scatter.h sys/dev/misc/gpib gpib.c sys/dev/misc/labpc labpc.c sys/dev/misc/puc puc.c sys/dev/netif/ar if_ar.c sys/dev/netif/aue if_aue.c sys/dev/netif/axe if_axe.c sys/dev/netif/fwe if_fwe.c sys/dev/netif/ic if_ic.c sys/dev/netif/ipw if_ipw.c sys/dev/netif/kue if_kue.c sys/dev/netif/my if_my.c sys/dev/netif/plip if_plip.c sys/dev/netif/sr if_sr.c sys/dev/netif/txp if_txp.c sys/dev/raid/amr amr.c sys/dev/raid/asr asr.c sys/dev/raid/ciss ciss.c sys/dev/raid/twa twa.c twa_cam.c sys/dev/raid/twe twe.c sys/dev/sound/pci ds1.c emu10k1.c sys/dev/sound/pcm buffer.c sndstat.c sound.c vchan.c sys/dev/usbmisc/uticom uticom.c sys/dev/video/ctx ctx.c sys/kern inflate.c init_main.c kern_exec.c kern_linker.c kern_module.c kern_sysctl.c sysv_msg.c sysv_sem.c sysv_shm.c uipc_usrreq.c sys/net rtsock.c sys/net/bridge if_bridge.c sys/net/ef if_ef.c sys/net/i4b/driver i4b_ipr.c sys/net/i4b/layer4 i4b_i4bdrv.c sys/net/ppp if_ppp.c sys/netgraph/eiface ng_eiface.c sys/netgraph/socket ng_socket.c sys/netgraph/tty ng_tty.c sys/netinet ip_carp.c ip_output.c sctp_pcb.c sys/netinet6 ip6_output.c sys/netproto/atm atm_socket.c sys/netproto/ipsec keysock.c xform_esp.c sys/netproto/ipx ipx.c sys/netproto/key keysock.c sys/netproto/ns ns.c sys/netproto/smb smb_rq.c smb_subr.c sys/opencrypto cryptodev.c sys/platform/pc32/i386 k6_mem.c sys_machdep.c sys/vfs/nfs bootp_subr.c sys/vfs/nwfs nwfs_vfsops.c sys/vfs/smbfs smbfs_smb.c sys/vfs/udf udf_vfsops.c Log: Remove bogus checks after kmalloc(M_WAITOK) which never returns NULL. Reviewed-by: hasso Revision Changes Path 1.21 +0 -3 src/sys/bus/firewire/firewire.c 1.20 +0 -2 src/sys/bus/firewire/fwdev.c 1.10 +0 -4 src/sys/bus/firewire/fwdma.c 1.16 +0 -2 src/sys/bus/firewire/fwmem.c 1.16 +0 -4 src/sys/bus/firewire/fwohci.c 1.51 +0 -6 src/sys/bus/pci/pci.c 1.37 +1 -6 src/sys/dev/disk/ata/atapi-cd.c 1.22 +0 -4 src/sys/dev/disk/ata/atapi-fd.c 1.22 +0 -4 src/sys/dev/disk/ata/atapi-tape.c 1.13 +0 -11 src/sys/dev/disk/isp/isp_pci.c 1.11 +0 -4 src/sys/dev/disk/mpt/mpt_pci.c 1.8 +39 -132 src/sys/dev/disk/nata/ata-raid.c 1.20 +0 -2 src/sys/dev/disk/wt/wt.c 1.5 +0 -10 src/sys/dev/drm/drm_scatter.h 1.15 +0 -3 src/sys/dev/misc/gpib/gpib.c 1.22 +1 -8 src/sys/dev/misc/labpc/labpc.c 1.12 +0 -4 src/sys/dev/misc/puc/puc.c 1.23 +0 -2 src/sys/dev/netif/ar/if_ar.c 1.37 +0 -2 src/sys/dev/netif/aue/if_aue.c 1.27 +0 -2 src/sys/dev/netif/axe/if_axe.c 1.30 +0 -4 src/sys/dev/netif/fwe/if_fwe.c 1.18 +0 -24 src/sys/dev/netif/ic/if_ic.c 1.21 +1 -9 src/sys/dev/netif/ipw/if_ipw.c 1.29 +0 -2 src/sys/dev/netif/kue/if_kue.c 1.29 +0 -5 src/sys/dev/netif/my/if_my.c 1.20 +0 -4 src/sys/dev/netif/plip/if_plip.c 1.23 +0 -2 src/sys/dev/netif/sr/if_sr.c 1.45 +0 -2 src/sys/dev/netif/txp/if_txp.c 1.25 +2 -8 src/sys/dev/raid/amr/amr.c 1.33 +98 -153 src/sys/dev/raid/asr/asr.c 1.26 +2 -8 src/sys/dev/raid/ciss/ciss.c 1.8 +5 -21 src/sys/dev/raid/twa/twa.c 1.6 +2 -3 src/sys/dev/raid/twa/twa_cam.c 1.19 +6 -12 src/sys/dev/raid/twe/twe.c 1.10 +2 -5 src/sys/dev/sound/pci/ds1.c 1.14 +1 -4 src/sys/dev/sound/pci/emu10k1.c 1.11 +0 -11 src/sys/dev/sound/pcm/buffer.c 1.13 +0 -2 src/sys/dev/sound/pcm/sndstat.c 1.12 +0 -7 src/sys/dev/sound/pcm/sound.c 1.8 +0 -6 src/sys/dev/sound/pcm/vchan.c 1.2 +0 -6 src/sys/dev/usbmisc/uticom/uticom.c 1.12 +0 -2 src/sys/dev/video/ctx/ctx.c 1.8 +1 -6 src/sys/kern/inflate.c 1.84 +0 -2 src/sys/kern/init_main.c 1.63 +0 -4 src/sys/kern/kern_exec.c 1.41 +2 -18 src/sys/kern/kern_linker.c 1.15 +0 -2 src/sys/kern/kern_module.c 1.29 +1 -2 src/sys/kern/kern_sysctl.c 1.18 +0 -8 src/sys/kern/sysv_msg.c 1.19 +0 -6 src/sys/kern/sysv_sem.c 1.21 +0 -4 src/sys/kern/sysv_shm.c 1.37 +0 -2 src/sys/kern/uipc_usrreq.c 1.42 +0 -2 src/sys/net/rtsock.c 1.27 +0 -2 src/sys/net/bridge/if_bridge.c 1.25 +0 -6 src/sys/net/ef/if_ef.c 1.21 +2 -5 src/sys/net/i4b/driver/i4b_ipr.c 1.20 +0 -19 src/sys/net/i4b/layer4/i4b_i4bdrv.c 1.37 +0 -3 src/sys/net/ppp/if_ppp.c 1.16 +0 -2 src/sys/netgraph/eiface/ng_eiface.c 1.16 +0 -14 src/sys/netgraph/socket/ng_socket.c 1.19 +0 -4 src/sys/netgraph/tty/ng_tty.c 1.5 +0 -13 src/sys/netinet/ip_carp.c 1.41 +0 -2 src/sys/netinet/ip_output.c 1.13 +0 -3 src/sys/netinet/sctp_pcb.c 1.33 +0 -6 src/sys/netinet6/ip6_output.c 1.11 +0 -4 src/sys/netproto/atm/atm_socket.c 1.18 +0 -2 src/sys/netproto/ipsec/keysock.c 1.13 +0 -4 src/sys/netproto/ipsec/xform_esp.c 1.14 +0 -2 src/sys/netproto/ipx/ipx.c 1.20 +0 -2 src/sys/netproto/key/keysock.c 1.16 +0 -2 src/sys/netproto/ns/ns.c 1.11 +0 -4 src/sys/netproto/smb/smb_rq.c 1.30 +0 -2 src/sys/netproto/smb/smb_subr.c 1.23 +0 -2 src/sys/opencrypto/cryptodev.c 1.10 +0 -2 src/sys/platform/pc32/i386/k6_mem.c 1.32 +0 -2 src/sys/platform/pc32/i386/sys_machdep.c 1.24 +0 -5 src/sys/vfs/nfs/bootp_subr.c 1.30 +0 -5 src/sys/vfs/nwfs/nwfs_vfsops.c 1.11 +0 -4 src/sys/vfs/smbfs/smbfs_smb.c 1.27 +0 -2 src/sys/vfs/udf/udf_vfsops.c http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/firewire.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/fwdev.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/fwdma.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/fwmem.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/bus/firewire/fwohci.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/bus/pci/pci.c.diff?r1=1.50&r2=1.51&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/ata/atapi-cd.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/ata/atapi-fd.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/ata/atapi-tape.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/isp/isp_pci.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/mpt/mpt_pci.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/nata/ata-raid.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/disk/wt/wt.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/drm/drm_scatter.h.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/misc/gpib/gpib.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/misc/labpc/labpc.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/misc/puc/puc.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ar/if_ar.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/aue/if_aue.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/axe/if_axe.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fwe/if_fwe.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ic/if_ic.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ipw/if_ipw.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/kue/if_kue.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/my/if_my.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/plip/if_plip.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sr/if_sr.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/txp/if_txp.c.diff?r1=1.44&r2=1.45&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/amr/amr.c.diff?r1=1.24&r2=1.25&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/asr/asr.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/ciss/ciss.c.diff?r1=1.25&r2=1.26&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/twa/twa.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/twa/twa_cam.c.diff?r1=1.5&r2=1.6&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/twe/twe.c.diff?r1=1.18&r2=1.19&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pci/ds1.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pci/emu10k1.c.diff?r1=1.13&r2=1.14&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pcm/buffer.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pcm/sndstat.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pcm/sound.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/sound/pcm/vchan.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/usbmisc/uticom/uticom.c.diff?r1=1.1&r2=1.2&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/video/ctx/ctx.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/inflate.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/init_main.c.diff?r1=1.83&r2=1.84&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_exec.c.diff?r1=1.62&r2=1.63&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_linker.c.diff?r1=1.40&r2=1.41&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_module.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_sysctl.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/sysv_msg.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/sysv_sem.c.diff?r1=1.18&r2=1.19&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/sysv_shm.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_usrreq.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/rtsock.c.diff?r1=1.41&r2=1.42&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/bridge/if_bridge.c.diff?r1=1.26&r2=1.27&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/ef/if_ef.c.diff?r1=1.24&r2=1.25&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/i4b/driver/i4b_ipr.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/i4b/layer4/i4b_i4bdrv.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/net/ppp/if_ppp.c.diff?r1=1.36&r2=1.37&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/eiface/ng_eiface.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/socket/ng_socket.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netgraph/tty/ng_tty.c.diff?r1=1.18&r2=1.19&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_carp.c.diff?r1=1.4&r2=1.5&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_output.c.diff?r1=1.40&r2=1.41&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netinet/sctp_pcb.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netinet6/ip6_output.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/atm/atm_socket.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/ipsec/keysock.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/ipsec/xform_esp.c.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/ipx/ipx.c.diff?r1=1.13&r2=1.14&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/key/keysock.c.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/ns/ns.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/smb/smb_rq.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/netproto/smb/smb_subr.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/opencrypto/cryptodev.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/platform/pc32/i386/k6_mem.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/sys/platform/pc32/i386/sys_machdep.c.diff?r1=1.31&r2=1.32&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nfs/bootp_subr.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/nwfs/nwfs_vfsops.c.diff?r1=1.29&r2=1.30&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/smbfs/smbfs_smb.c.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/udf/udf_vfsops.c.diff?r1=1.26&r2=1.27&f=u