staging: comedi: usbduxsigma: use usbdux_pwm_stop() to force unlink urb
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:44:17 +0000 (12:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:43 +0000 (20:40 +0900)
commit7bcc313186b55f2e9e5a786c40b8c5c589a24d5b
tree6d4eeca9b5f1ec122a2aa9fc2b769293da4b5201
parent0c32b57e77106406c202a1e5e73b985d950db196
staging: comedi: usbduxsigma: use usbdux_pwm_stop() to force unlink urb

In tidy_up(), instead of duplicating the code in usbdux_pwm_stop() to
unlink the pwm urb, just use usbdux_pwm_stop(). Since that function calls
usb_kill_urb() and clears the 'pwm_cmd_running' flag, we can also remove
the redundant code in tidy_up().

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