From: Stefan Agner Date: Mon, 17 Apr 2017 03:12:50 +0000 (-0700) Subject: usb: gadget: remove redundant self assignment X-Git-Tag: MMI-PSA29.97-13-9~5313^2~23^2~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a8b161df5ce06ef5a315899f83978e765be09e8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb: gadget: remove redundant self assignment The assignment ret = ret is redundant and can be removed. Reviewed-by: Krzysztof Opasiak Reviewed-by: Peter Chen Signed-off-by: Stefan Agner Signed-off-by: Felipe Balbi --- 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;