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>
This commit is contained in:
Colin Ian King 2016-07-25 22:57:36 +01:00 committed by Felipe Balbi
parent a08f5dbf87
commit f510b5a1d0
1 changed files with 1 additions and 3 deletions

View File

@ -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;