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:
ea78201
)
usb: gadget: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Thu, 26 Sep 2013 07:55:25 +0000
(15:55 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 1 Oct 2013 14:46:17 +0000
(09:46 -0500)
trivial patch converting ERR_PTR(PTR_ERR()) into ERR_CAST().
No functional changes.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/configfs.c
b/drivers/usb/gadget/configfs.c
index 8f0d6141e5e6c2b2c1acfb53b769438f32d7907a..1bfacbfca1d82970b562f4155f1eaa0f912d9d55 100644
(file)
--- a/
drivers/usb/gadget/configfs.c
+++ b/
drivers/usb/gadget/configfs.c
@@
-557,7
+557,7
@@
static struct config_group *function_make(
fi = usb_get_function_instance(func_name);
if (IS_ERR(fi))
- return ERR_
PTR(PTR_ERR(fi)
);
+ return ERR_
CAST(fi
);
ret = config_item_set_name(&fi->group.cg_item, name);
if (ret) {