From 056e0af2f5dd7c19176bd9d099cd9e9649be33f8 Mon Sep 17 00:00:00 2001 From: Ashvini Varatharaj Date: Sat, 19 Oct 2013 22:01:22 +0530 Subject: 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 471c10c..ee17990 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; -- cgit v0.10.2