Skip to content

Commit

Permalink
USB: gadget/multi: cdc_do_config: remove redundant check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Korsgaard authored and Greg Kroah-Hartman committed Mar 19, 2010
1 parent d835933 commit 4cb80cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/gadget/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4cb80cd

Please sign in to comment.