diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/multi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c index a74ebefc7682..4a45e80c6e38 100644 --- a/drivers/usb/gadget/multi.c +++ b/drivers/usb/gadget/multi.c | |||
@@ -157,8 +157,10 @@ static __init int rndis_do_config(struct usb_configuration *c) | |||
157 | return ret; | 157 | return ret; |
158 | 158 | ||
159 | f_acm_rndis = usb_get_function(fi_acm); | 159 | f_acm_rndis = usb_get_function(fi_acm); |
160 | if (IS_ERR(f_acm_rndis)) | 160 | if (IS_ERR(f_acm_rndis)) { |
161 | ret = PTR_ERR(f_acm_rndis); | ||
161 | goto err_func_acm; | 162 | goto err_func_acm; |
163 | } | ||
162 | 164 | ||
163 | ret = usb_add_function(c, f_acm_rndis); | 165 | ret = usb_add_function(c, f_acm_rndis); |
164 | if (ret) | 166 | if (ret) |