usb: gadget: uvc: Fix the wrong v4l2_device_unregister call
authorZqiang <qiang.zhang@windriver.com>
Sun, 27 Sep 2020 08:01:16 +0000 (16:01 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:45 +0000 (09:57 +0300)
commitf0c485663d5976acb1cb490981a4763a215df75e
tree335d2090384398136f999a5a930ff349a51ee756
parent7f2958d9ad58a41df81a7c1e28dd5ddeeec58890
usb: gadget: uvc: Fix the wrong v4l2_device_unregister call

If an error occurred before calling the 'v4l2_device_register' func,
and then goto error, but no need to call 'v4l2_device_unregister'
func.

Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_uvc.c