[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180406084334.866211955@linuxfoundation.org>
Date: Fri, 6 Apr 2018 15:23:04 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Krzysztof Opasiak <k.opasiak@...sung.com>,
Peter Chen <peter.chen@....com>,
Stefan Agner <stefan@...er.ch>,
Felipe Balbi <felipe.balbi@...ux.intel.com>,
Nathan Chancellor <natechancellor@...il.com>
Subject: [PATCH 4.9 023/102] usb: gadget: remove redundant self assignment
4.9-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stefan Agner <stefan@...er.ch>
commit 8a8b161df5ce06ef5a315899f83978e765be09e8 upstream.
The assignment ret = ret is redundant and can be removed.
Reviewed-by: Krzysztof Opasiak <k.opasiak@...sung.com>
Reviewed-by: Peter Chen <peter.chen@....com>
Signed-off-by: Stefan Agner <stefan@...er.ch>
Signed-off-by: Felipe Balbi <felipe.balbi@...ux.intel.com>
Cc: Nathan Chancellor <natechancellor@...il.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/usb/gadget/udc/core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- 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;
Powered by blists - more mailing lists