Commit 8a8b161d authored by Stefan Agner's avatar Stefan Agner Committed by Felipe Balbi

usb: gadget: remove redundant self assignment

The assignment ret = ret is redundant and can be removed.
Reviewed-by: default avatarKrzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment