From: Duan Jiong Date: Fri, 11 Apr 2014 10:05:13 +0000 (+0800) Subject: usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f58fa4c919e1a33e3844f6851735ec9f724bf52;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO PTR_RET is deprecated. Do not recommend its usage anymore. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Duan Jiong Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c index df4a0dcbc993..1ea8baf33333 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 PTR_RET(net); + return PTR_ERR_OR_ZERO(net); } static void geth_disable(struct usb_function *f)