usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 11 Apr 2014 10:05:13 +0000 (18:05 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:29 +0000 (14:07 -0500)
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_subset.c

index df4a0dcbc99350f70d84e8c77a1bb0713041ac9b..1ea8baf33333be75990c6c1b7d2d6208192f7375 100644 (file)
@@ -276,7 +276,7 @@ static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
        }
 
        net = gether_connect(&geth->port);
-       return PTR_RET(net);
+       return PTR_ERR_OR_ZERO(net);
 }
 
 static void geth_disable(struct usb_function *f)