projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d835933
)
USB: gadget/multi: cdc_do_config: remove redundant check
author
Peter Korsgaard
<jacmet@sunsite.dk>
Fri, 12 Mar 2010 11:33:15 +0000
(12:33 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 19 Mar 2010 14:24:24 +0000
(07:24 -0700)
cdc_do_config() had a double ret check after fsg_add().
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/multi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/multi.c
b/drivers/usb/gadget/multi.c
index 76496f5d272c59cebd3856aa8cce245d5c4352f3..a930d7fd7e7a5425fff7bd6c77044acaf0dc2355 100644
(file)
--- a/
drivers/usb/gadget/multi.c
+++ b/
drivers/usb/gadget/multi.c
@@
-211,8
+211,6
@@
static int __init cdc_do_config(struct usb_configuration *c)
ret = fsg_add(c->cdev, c, fsg_common);
if (ret < 0)
return ret;
- if (ret < 0)
- return ret;
return 0;
}