summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-07-25 21:57:36 (GMT)
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-25 09:13:08 (GMT)
commitf510b5a1d00bba1c908a4886e4c3309aca0abc8c (patch)
treed9c49e3937a66681b54c12b9dbc3e188ae858cc6
parenta08f5dbf877a4594816dbb499c4af18fce936110 (diff)
downloadlinux-f510b5a1d00bba1c908a4886e4c3309aca0abc8c.tar.xz
usb: gadget: remove redundant self assignment
The assignment ret = ret is redundant and can be removed. Reviewed-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/gadget/udc/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c
index 934f838..d8e6686 100644
--- a/drivers/usb/gadget/udc/core.c
+++ b/drivers/usb/gadget/udc/core.c
@@ -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;