]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: gadget: remove redundant self assignment
authorStefan Agner <stefan@agner.ch>
Mon, 17 Apr 2017 03:12:50 +0000 (20:12 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 2 Jun 2017 08:22:31 +0000 (11:22 +0300)
The assignment ret = ret is redundant and can be removed.

Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/core.c

index efce68e9a8e038557bdc36c8263bad03cef7e108..62d52fc0fcdc8cb921c5448e365e6175dd48a1f3 100644 (file)
@@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep)
                goto out;
 
        ret = ep->ops->disable(ep);
-       if (ret) {
-               ret = ret;
+       if (ret)
                goto out;
-       }
 
        ep->enabled = false;