From: Ashvini Varatharaj Date: Sat, 19 Oct 2013 16:31:22 +0000 (+0530) Subject: Staging: line6: replacing -EINVAL with retval in driver.c X-Git-Tag: next-20131021~27^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=056e0af2f5dd7c19176bd9d099cd9e9649be33f8;p=karo-tx-linux.git Staging: line6: replacing -EINVAL with retval in driver.c drivers/staging/line6/driver.c:208 line6_send_raw_message_async_part() info: why not propagate 'retval' from usb_submit_urb() instead of (-22)? Signed-off-by: Ashvini Varatharaj Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c index 471c10c116ec..ee1799056b48 100644 --- a/drivers/staging/line6/driver.c +++ b/drivers/staging/line6/driver.c @@ -205,7 +205,7 @@ static int line6_send_raw_message_async_part(struct message *msg, __func__, retval); usb_free_urb(urb); kfree(msg); - return -EINVAL; + return retval; } return 0;