mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: Cocci spatch "ptr_ret.spatch"
@ 2013-06-01  9:59 Thomas Meyer
  2013-06-01 16:59 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Meyer @ 2013-06-01  9:59 UTC (permalink / raw)
  To: balbi, linux-usb, linux-kernel


Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---

diff -u -p a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c
--- a/drivers/usb/gadget/f_subset.c
+++ b/drivers/usb/gadget/f_subset.c
@@ -274,7 +274,7 @@ static int geth_set_alt(struct usb_funct
 	}
 
 	net = gether_connect(&geth->port);
-	return IS_ERR(net) ? PTR_ERR(net) : 0;
+	return PTR_RET(net);
 }
 
 static void geth_disable(struct usb_function *f)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-01 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-01  9:59 [PATCH] usb: gadget: Cocci spatch "ptr_ret.spatch" Thomas Meyer
2013-06-01 16:59 ` Felipe Balbi

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

all inboxes | Powered by JetHome®