diff options
author | Stefan Agner <stefan@agner.ch> | 2017-04-16 20:12:50 -0700 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-06-02 11:22:31 +0300 |
commit | 8a8b161df5ce06ef5a315899f83978e765be09e8 (patch) | |
tree | 795921e4cc42124b7244f1647d23028ddb9eed91 /drivers/usb/gadget | |
parent | b0b3ddf8fb37283d0d488d667fac4c069d612ba3 (diff) | |
download | linux-8a8b161df5ce06ef5a315899f83978e765be09e8.tar.gz linux-8a8b161df5ce06ef5a315899f83978e765be09e8.tar.bz2 linux-8a8b161df5ce06ef5a315899f83978e765be09e8.zip |
usb: gadget: remove redundant self assignment
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>
Diffstat (limited to 'drivers/usb/gadget')
-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 efce68e9a8e0..62d52fc0fcdc 100644 --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -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; |