Skip to content

Commit

Permalink
usb: musb: Prevent the masking of the return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shubhrajyoti D authored and Felipe Balbi committed Aug 9, 2012
1 parent 660fa88 commit f69dfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ static int __devinit ep_config_from_table(struct musb *musb)
if (offset < 0) {
pr_debug("%s: mem overrun, ep %d\n",
musb_driver_name, epn);
return -EINVAL;
return offset;
}
epn++;
musb->nr_endpoints = max(epn, musb->nr_endpoints);
Expand Down

0 comments on commit f69dfa1

Please sign in to comment.