public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: remove redundant self assignment
@ 2016-07-25 21:57 Colin King
  2016-07-27  9:27 ` Peter Chen
  0 siblings, 1 reply; 5+ messages in thread
From: Colin King @ 2016-07-25 21:57 UTC (permalink / raw)
  To: Felipe Balbi, Greg Kroah-Hartman, Marek Szyprowski,
	Ruslan Bilovol, Robert Baldyga, Yoshihiro Shimoda, linux-usb
  Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The assignment ret = ret is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/usb/gadget/udc/core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c
index ff8685e..48cf1a3 100644
--- a/drivers/usb/gadget/udc/core.c
+++ b/drivers/usb/gadget/udc/core.c
@@ -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;
 
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread
[parent not found: <CGME20170417031117epcas5p3cba067df249c6f0fcfad0eb09eb20040@epcas5p3.samsung.com>]

end of thread, other threads:[~2017-04-19  9:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-25 21:57 [PATCH] usb: gadget: remove redundant self assignment Colin King
2016-07-27  9:27 ` Peter Chen
     [not found] <CGME20170417031117epcas5p3cba067df249c6f0fcfad0eb09eb20040@epcas5p3.samsung.com>
2017-04-17  3:12 ` Stefan Agner
2017-04-17  7:42   ` Peter Chen
2017-04-19  9:01   ` Krzysztof Opasiak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox