cdc_do_config() had a double ret check after fsg_add().
Unified · Split
| @@ -211,8 +211,6 @@ static int __init cdc_do_config(struct usb_configuration *c) · 210 unmodified lines | ||
| 211 | 211 | ret = fsg_add(c->cdev, c, fsg_common); |
| 212 | 212 | if (ret < 0) |
| 213 | 213 | return ret; |
| 214 | − if (ret < 0) | |
| 215 | − return ret; | |
| 216 | 214 | |
| 217 | 215 | return 0; |
| 218 | 216 | } |