From: H Hartley Sweeten Date: Thu, 23 May 2013 19:46:40 +0000 (-0700) Subject: staging: comedi: usbduxsigma: generalize the usb_submit_urb functions X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~470 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0a1e971f86e529bd0e1d6f3ac33bbc9830272f;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed