]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbduxsigma: change return type of the stop functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:40:45 +0000 (12:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:39 +0000 (20:40 +0900)
commit7ba565b5b4c7a5962bf54fe337c19f398a45dd29
treecd2ddcdf281ac7817ad8722df1434c4f2de400bd
parent5ae8919bd5ee2d3e8d387d62bbc12f1640eb4b01
staging: comedi: usbduxsigma: change return type of the stop functions

The usbdux_pwm_cancel() function is the only caller that does not validate
the comedi_device private data before calling the stop function. Move the
validation test to that function and remove the unnecessary sanity checks.

Since the stop functions always succeed, change the return type to void.

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