]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: usbduxsigma: generalize the usb_submit_urb functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:46:40 +0000 (12:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:46 +0000 (20:40 +0900)
commitde0a1e971f86e529bd0e1d6f3ac33bbc9830272f
tree8723e69d1fdcf62a2b371e3a3b1f2a8ad4eb6672
parent91fe97f3a34f4c13993655c241a4edc90216e74f
staging: comedi: usbduxsigma: generalize the usb_submit_urb functions

Generalize a helper function to replace usbduxsub_submit_{In,Out}URBs().

In the callers, set the 'a[io]_cmd_running' flag after the urbs have been
successfully submitted. This removes the need to clear the flag if the
submit fails.

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