]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbduxsigma: remove check of 'probed' in (*cancel) functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:41:27 +0000 (12:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:41 +0000 (20:40 +0900)
commitd34bb5cbea4aac5404c52679b65ba41385e50722
treef44e3dc173d2d51bbb31f51804b9ef8dc5a88b87
parent7ba565b5b4c7a5962bf54fe337c19f398a45dd29
staging: comedi: usbduxsigma: remove check of 'probed' in (*cancel) functions

The comedi_device private data variable 'probed' is set after the usb_driver
has completed its (*probe) before calling comedi_usb_auto_config(). That
function calls the comedi_driver (*auto_attach) which will set the
comedi_device 'private' variable and initialize the subdevices.

The subdevice (*cancel) functions can only be called after the (*auto_attach)
has completed successfully so the sanity checks of 'probed' are unnecessary.
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