diff options
-rw-r--r-- | drivers/usb/gadget/f_obex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_obex.c b/drivers/usb/gadget/f_obex.c index 29a348a2a294..8aa2be5329bc 100644 --- a/drivers/usb/gadget/f_obex.c +++ b/drivers/usb/gadget/f_obex.c | |||
@@ -348,6 +348,7 @@ static int obex_bind(struct usb_configuration *c, struct usb_function *f) | |||
348 | 348 | ||
349 | /* allocate instance-specific endpoints */ | 349 | /* allocate instance-specific endpoints */ |
350 | 350 | ||
351 | status = -ENODEV; | ||
351 | ep = usb_ep_autoconfig(cdev->gadget, &obex_fs_ep_in_desc); | 352 | ep = usb_ep_autoconfig(cdev->gadget, &obex_fs_ep_in_desc); |
352 | if (!ep) | 353 | if (!ep) |
353 | goto fail; | 354 | goto fail; |