projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea8928
)
usb: gadget: f_subset: replace PTR_RET with PTR_ERR_OR_ZERO
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Fri, 11 Apr 2014 10:05:13 +0000
(18:05 +0800)
committer
Felipe 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
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_subset.c
b/drivers/usb/gadget/f_subset.c
index df4a0dcbc99350f70d84e8c77a1bb0713041ac9b..1ea8baf33333be75990c6c1b7d2d6208192f7375 100644
(file)
--- 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)