summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-04-11 18:05:13 +0800
committerFelipe Balbi <balbi@ti.com>2014-04-21 14:07:29 -0500
commit9f58fa4c919e1a33e3844f6851735ec9f724bf52 (patch)
treebb8d30a1287f52efa1ebc41fc25ba7b54228c47f
parentaea8928aba7d7ee2e6245d44ba7de4c04fc90559 (diff)
downloadop-kernel-dev-9f58fa4c919e1a33e3844f6851735ec9f724bf52.zip
op-kernel-dev-9f58fa4c919e1a33e3844f6851735ec9f724bf52.tar.gz
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 <duanj.fnst@cn.fujitsu.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/f_subset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c
index df4a0dcb..1ea8baf 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)
OpenPOWER on IntegriCloud