提交 f69dfa1f 编写于 作者: S Shubhrajyoti D 提交者: Felipe Balbi

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: NShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 660fa886
...@@ -1295,7 +1295,7 @@ static int __devinit ep_config_from_table(struct musb *musb) ...@@ -1295,7 +1295,7 @@ static int __devinit ep_config_from_table(struct musb *musb)
if (offset < 0) { if (offset < 0) {
pr_debug("%s: mem overrun, ep %d\n", pr_debug("%s: mem overrun, ep %d\n",
musb_driver_name, epn); musb_driver_name, epn);
return -EINVAL; return offset;
} }
epn++; epn++;
musb->nr_endpoints = max(epn, musb->nr_endpoints); musb->nr_endpoints = max(epn, musb->nr_endpoints);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册