USB: Gadget: Webcam: Return correct result of bind
The config bind was reported success even if usb_add_function failed. Fix the return value. Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5030ec7302
commit
28f75f4db1
1 changed files with 1 additions and 1 deletions
|
@ -651,7 +651,7 @@ uvc_bind_config(struct usb_configuration *c,
|
|||
if (ret)
|
||||
kfree(uvc);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
|
||||
error:
|
||||
kfree(uvc);
|
||||
|
|
Loading…
Reference in a new issue