History

USB: gadget/multi: cdc_do_config: remove redundant check

cdc_do_config() had a double ret check after fsg_add().

Peter Korsgaard committed 16 years ago

Commit 4cb80cd1 parent d8359331 file · +0 −2Browse files

Unified · Split

drivers/usb/gadget/multi.c+0−2
@@ -211,8 +211,6 @@ static int __init cdc_do_config(struct usb_configuration *c) · 210 unmodified lines
211 ret = fsg_add(c->cdev, c, fsg_common);211 ret = fsg_add(c->cdev, c, fsg_common);
212 if (ret < 0)212 if (ret < 0)
213 return ret;213 return ret;
214 if (ret < 0)
215 return ret;
216 214
217 return 0;215 return 0;
218}216}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t