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)
goto out;
ret = ep->ops->enable(ep, ep->desc);
if (ret) {
ret = ret;
if (ret)
goto out;
}
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