aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2012-08-07 10:26:31 -0400
committerFelipe Balbi <balbi@ti.com>2012-08-09 07:38:51 -0400
commitf69dfa1f01e20387ada601f2bf772061d79e6a8f (patch)
tree7abe57a1d9b77e8affc2d8a059cf238b785a9424
parent660fa8863d2623b733d7977a56e2990437abcbdb (diff)
usb: musb: Prevent the masking of the return value
Currently the errors returned by fifo_setup get masked by EINVAL, propagate the same to the caller. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/musb/musb_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 4bc2ad8352a7..dd24f966af10 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1295,7 +1295,7 @@ done:
1295 if (offset < 0) { 1295 if (offset < 0) {
1296 pr_debug("%s: mem overrun, ep %d\n", 1296 pr_debug("%s: mem overrun, ep %d\n",
1297 musb_driver_name, epn); 1297 musb_driver_name, epn);
1298 return -EINVAL; 1298 return offset;
1299 } 1299 }
1300 epn++; 1300 epn++;
1301 musb->nr_endpoints = max(epn, musb->nr_endpoints); 1301 musb->nr_endpoints = max(epn, musb->nr_endpoints);