Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f69dfa1f authored by Shubhrajyoti D's avatar Shubhrajyoti D Committed by Felipe Balbi
Browse files

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: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 660fa886
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);