diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-04-11 18:05:13 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-21 14:07:29 -0500 |
commit | 9f58fa4c919e1a33e3844f6851735ec9f724bf52 (patch) | |
tree | bb8d30a1287f52efa1ebc41fc25ba7b54228c47f /drivers/usb | |
parent | aea8928aba7d7ee2e6245d44ba7de4c04fc90559 (diff) | |
download | op-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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_subset.c | 2 |
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) |