summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshvini Varatharaj <ashvinivaratharaj@gmail.com>2013-10-19 16:31:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 21:51:06 (GMT)
commit056e0af2f5dd7c19176bd9d099cd9e9649be33f8 (patch)
tree8e19b599cc881290a6623d7059a883aab1cd5858
parent88ef9b1bcec362e15d677ca183bce219706b77ca (diff)
downloadlinux-fsl-qoriq-056e0af2f5dd7c19176bd9d099cd9e9649be33f8.tar.xz
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 <ashvinivaratharaj@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/line6/driver.c2
1 files changed, 1 insertions, 1 deletions
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;