* [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
* Re: [PATCH] usb: gadget: Cocci spatch "ptr_ret.spatch"
2013-06-01 9:59 [PATCH] usb: gadget: Cocci spatch "ptr_ret.spatch" Thomas Meyer
@ 2013-06-01 16:59 ` Felipe Balbi
0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2013-06-01 16:59 UTC (permalink / raw)
To: Thomas Meyer; +Cc: balbi, linux-usb, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]
On Sat, Jun 01, 2013 at 11:59:25AM +0200, Thomas Meyer wrote:
>
-ENOLOG
> 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)
>
>
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ 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®