]> rtime.felk.cvut.cz Git - linux-imx.git/commit
staging: comedi: usbduxsigma: use usbdux_ao_stop() to force unlink all urbs
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:43:35 +0000 (12:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:43 +0000 (20:40 +0900)
commitdc29c6fa5e5b3f18b29a4c552ea4f67376ebf2cd
tree08cc74017c904e4677792b9445a82db638c79045
parent705a8f720154eea0c8f9801f6a9b30bbf5d7ca25
staging: comedi: usbduxsigma: use usbdux_ao_stop() to force unlink all urbs

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