提交 f510b5a1 编写于 作者: C Colin Ian King 提交者: Felipe Balbi

usb: gadget: remove redundant self assignment

The assignment ret = ret is redundant and can be removed.
Reviewed-by: NPeter Chen <peter.chen@nxp.com>
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 a08f5dbf
......@@ -107,10 +107,8 @@ int usb_ep_enable(struct usb_ep *ep)
goto out;
ret = ep->ops->enable(ep, ep->desc);
if (ret) {
ret = ret;
if (ret)
goto out;
}
ep->enabled = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册