summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/multi.c
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-03-12 14:33:15 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-19 17:24:24 +0300
commit4cb80cda51ff950614701fb30c9d4e583fe5a31f (patch)
tree7b3fb0f275f8f0c32f90b3215ad05e1f23c8408d /drivers/usb/gadget/multi.c
parentd835933436ac0d1e8f5b35fe809fd4e767e55d6e (diff)
downloadlinux-4cb80cda51ff950614701fb30c9d4e583fe5a31f.tar.xz
USB: gadget/multi: cdc_do_config: remove redundant check
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>
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r--drivers/usb/gadget/multi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c
index 76496f5d272c..a930d7fd7e7a 100644
--- 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;
}