Commit f510b5a1 authored by Colin Ian King's avatar Colin Ian King Committed by Felipe Balbi

usb: gadget: remove redundant self assignment

The assignment ret = ret is redundant and can be removed.
Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent a08f5dbf
...@@ -107,10 +107,8 @@ int usb_ep_enable(struct usb_ep *ep) ...@@ -107,10 +107,8 @@ int usb_ep_enable(struct usb_ep *ep)
goto out; goto out;
ret = ep->ops->enable(ep, ep->desc); ret = ep->ops->enable(ep, ep->desc);
if (ret) { if (ret)
ret = ret;
goto out; goto out;
}
ep->enabled = true; ep->enabled = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment