linux/drivers/staging/comedi
Dan Carpenter f25bd6bfdf Staging: comedi: cleanup: remove unneeded null checks
These checks are obviously pointless because kfree() can handle null
dereferences.

But really the main problem is that if the pointers were null that would
cause problems on the ealier lines.  The dereferences would cause an
oops and the _release() functions use ->priv to determine which IRQ to
free.  I looked into it and quite a few of the detach functions assume
link->priv is non-null.  It seems like we can remove these checks.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-17 13:36:33 -07:00
..
drivers Staging: comedi: cleanup: remove unneeded null checks 2010-06-17 13:36:33 -07:00
kcomedilib Staging: comedi: new Kconfig and Makefiles, drivers grouped by bustype. 2010-05-18 14:23:12 -07:00
comedi_compat32.c Staging: comedi: range.c: properly mark up __user pointers 2010-05-11 11:36:03 -07:00
comedi_compat32.h Staging: comedi: remove check for HAVE_COMPAT_IOCTL 2009-12-11 12:23:01 -08:00
comedi_fops.c Staging: comedi: Allow 'open' driver method to fail 2010-06-17 13:28:56 -07:00
comedi_fops.h Staging: comedi: fix up remaining coding style issue in proc.c 2010-05-11 11:35:58 -07:00
comedi.h Staging: comedi: Fixed more long line lengths in comedi.h 2010-05-14 13:53:19 -07:00
comedidev.h Staging: comedi: Allow 'open' driver method to fail 2010-06-17 13:28:56 -07:00
comedilib.h Staging: comedi: kcomedilib: make it typesafe 2010-05-11 11:36:02 -07:00
drivers.c Staging: comedi: Fixed printk call lengths and log levels 2010-05-11 11:36:18 -07:00
internal.h Staging: comedi: drivers.c sparse cleanup 2010-05-11 11:36:03 -07:00
Kconfig Staging: comedi: fixing ni_labpc to mite dependancy 2010-06-04 13:38:57 -07:00
Makefile Staging: comedi: remove comedi_ksyms.c 2010-05-11 11:36:00 -07:00
proc.c Staging: comedi: clean up sparse issues in proc.c 2010-05-11 11:36:03 -07:00
range.c Staging: comedi: range.c: properly mark up __user pointers 2010-05-11 11:36:03 -07:00
TODO Staging: comedi: David doesn't want to get comedi patches 2009-05-08 19:39:28 -07:00