]> rtime.felk.cvut.cz Git - linux-imx.git/commit
staging: comedi: usbduxsigma: cleanup the (*cancel) functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:42:01 +0000 (12:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:41 +0000 (20:40 +0900)
commiteac456c82376f6592b2fb8dd6f76d230bf24476e
tree01e683d5e1b04300b00fae11b93c92337c402671
parent00fbd2851428f2fa8cf0aaff6832f21fe4856c9c
staging: comedi: usbduxsigma: cleanup the (*cancel) functions

The (*cancel) functions can only be called by the comedi core it the
(*auto_attach) completed successfully. That function sets the comedi_device
'private' variable before initializing the callbacks so the sanity checks
are unnecessary. Remove them.

Also, rename the 'this_usbduxsub' local variable to 'devpriv' as this is
more common in comedi drivers.

Remove the unnecessary comments.

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