From: Felipe Balbi Date: Mon, 10 Mar 2014 18:30:54 +0000 (-0500) Subject: usb: gadget: f_subset: switch over to PTR_RET X-Git-Tag: firefly_0821_release~176^2~4191^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3c73649828397ca6bae88bcb8cd70bbcbb65b18;p=firefly-linux-kernel-4.4.55.git usb: gadget: f_subset: switch over to PTR_RET this patch fixes the following Coccinelle warning: drivers/usb/gadget/f_subset.c:279:8-14: WARNING: \ PTR_RET can be used Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c index f1a59190ac9a..df4a0dcbc993 100644 --- a/drivers/usb/gadget/f_subset.c +++ b/drivers/usb/gadget/f_subset.c @@ -276,7 +276,7 @@ static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) } 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)