提交 8a8b161d 编写于 作者: S Stefan Agner 提交者: Felipe Balbi

usb: gadget: remove redundant self assignment

The assignment ret = ret is redundant and can be removed.
Reviewed-by: NKrzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: NPeter Chen <peter.chen@nxp.com>
Signed-off-by: NStefan Agner <stefan@agner.ch>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 b0b3ddf8
...@@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep) ...@@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep)
goto out; goto out;
ret = ep->ops->disable(ep); ret = ep->ops->disable(ep);
if (ret) { if (ret)
ret = ret;
goto out; goto out;
}
ep->enabled = false; ep->enabled = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册