diff options
author | Ashvini Varatharaj <ashvinivaratharaj@gmail.com> | 2013-10-19 21:53:37 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-19 14:51:06 -0700 |
commit | 88ef9b1bcec362e15d677ca183bce219706b77ca (patch) | |
tree | 66574e810e0d1dcf01cab328b6c49766a105c4f2 /drivers/staging/line6 | |
parent | a8eecad5c906707475a2141133fe43710e5f5e85 (diff) | |
download | linux-stable-88ef9b1bcec362e15d677ca183bce219706b77ca.tar.gz linux-stable-88ef9b1bcec362e15d677ca183bce219706b77ca.tar.bz2 linux-stable-88ef9b1bcec362e15d677ca183bce219706b77ca.zip |
Staging: line6: replacing -EINVAL with retval
drivers/staging/line6/midi.c:147 send_midi_async() info: why not
propagate 'retval' from usb_submit_urb() instead of (-22)?
Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/line6')
-rw-r--r-- | drivers/staging/line6/midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index 52da4d9d2164..3f6d78c585fb 100644 --- a/drivers/staging/line6/midi.c +++ b/drivers/staging/line6/midi.c @@ -144,7 +144,7 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data, if (retval < 0) { dev_err(line6->ifcdev, "usb_submit_urb failed\n"); usb_free_urb(urb); - return -EINVAL; + return retval; } ++line6->line6midi->num_active_send_urbs; |