staging: comedi: usbduxsigma: use usbdux_ai_stop() to force unlink all urbs
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:42:42 +0000 (12:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:42 +0000 (20:40 +0900)
commitc61454e19ab327f769221f1752b59322853d8716
treecd0027de1f56edd22e270be2bc909f7a590411c4
parenteac456c82376f6592b2fb8dd6f76d230bf24476e
staging: comedi: usbduxsigma: use usbdux_ai_stop() to force unlink all urbs

In tidy_up(), instead of duplicating the code in usbdux_ai_stop() to unlink
all the input urbs, just use usbdux_ai_stop(). Since that function calls
usb_kill_urb() for all the urbs and clears the 'ai_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