diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-07-25 22:57:36 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-08-25 12:13:08 +0300 |
commit | f510b5a1d00bba1c908a4886e4c3309aca0abc8c (patch) | |
tree | d9c49e3937a66681b54c12b9dbc3e188ae858cc6 /drivers/usb/gadget/udc/core.c | |
parent | a08f5dbf877a4594816dbb499c4af18fce936110 (diff) | |
download | op-kernel-dev-f510b5a1d00bba1c908a4886e4c3309aca0abc8c.zip op-kernel-dev-f510b5a1d00bba1c908a4886e4c3309aca0abc8c.tar.gz |
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>
Diffstat (limited to 'drivers/usb/gadget/udc/core.c')
-rw-r--r-- | drivers/usb/gadget/udc/core.c | 4 |
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; |