]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: usbduxsigma: remove private data sanity checks
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:52:37 +0000 (12:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:54 +0000 (20:40 +0900)
commitedd2d33ee88cc8b1b2cd65baa4381a1c1a5ca747
tree709a3dc98f7de26967e00eeaa17d8a7a74af0154
parent2a8cdc6861557f3ed67e8dbef667fb3ccc61e459
staging: comedi: usbduxsigma: remove private data sanity checks

The comedi functions in this driver can only be called if the
(*auto_attach) successfull kzalloc'ed the private data and set
dev->private. The extra sanity checks are not needed. Remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c