usb: gadget: remove redundant self assignment
authorColin Ian King <colin.king@canonical.com>
Mon, 25 Jul 2016 21:57:36 +0000 (22:57 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:08 +0000 (12:13 +0300)
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>
drivers/usb/gadget/udc/core.c

index 934f83881c3074250d9117df691463cddb61ca0c..d8e6686a84b72b0958525e564f95665810799e6f 100644 (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;