projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b74c73
)
usb: gadget: composite: switch over to ERR_CAST()
author
Felipe Balbi
<balbi@ti.com>
Mon, 10 Mar 2014 18:30:56 +0000
(13:30 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:05:31 +0000
(16:05 -0700)
This patch fixes the following Coccinelle warning:
drivers/usb/gadget/composite.c:1142:9-16: WARNING: \
ERR_CAST can be used with uc
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/composite.c
b/drivers/usb/gadget/composite.c
index d742bed7a5fa604ee7144f3b2c17cd9f6e06bc80..fab906429b80533fc18a965efa5b9eb504f46ea7 100644
(file)
--- a/
drivers/usb/gadget/composite.c
+++ b/
drivers/usb/gadget/composite.c
@@
-1139,7
+1139,7
@@
struct usb_string *usb_gstrings_attach(struct usb_composite_dev *cdev,
uc = copy_gadget_strings(sp, n_gstrings, n_strings);
if (IS_ERR(uc))
- return ERR_
PTR(PTR_ERR(uc)
);
+ return ERR_
CAST(uc
);
n_gs = get_containers_gs(uc);
ret = usb_string_ids_tab(cdev, n_gs[0]->strings);