From: Arnd Bergmann Date: Tue, 26 Jan 2016 16:17:24 +0000 (-0200) Subject: [media] pwc: hide unused label X-Git-Tag: v4.1.50~87 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9b76f398ddcf6e2ae1291a089d9bf64f42f40cd2;p=users%2Fdwmw2%2Flinux.git [media] pwc: hide unused label [ Upstream commit 1f6bcd011464cb36059e2562f72baf75f98b732d ] The pwc driver causes a warning when CONFIG_USB_PWC_INPUT_EVDEV is unset: drivers/media/usb/pwc/pwc-if.c: In function 'usb_pwc_probe': drivers/media/usb/pwc/pwc-if.c:1115:1: warning: label 'err_video_unreg' defined but not used [-Wunused-label] This moves the unused label and code inside another #ifdef to get rid of the warning. Signed-off-by: Arnd Bergmann Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index a7e1f6f37790f..a8f265cee365f 100644 --- a/drivers/media/usb/pwc/pwc-if.c +++ b/drivers/media/usb/pwc/pwc-if.c @@ -1110,8 +1110,10 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id return 0; +#ifdef CONFIG_USB_PWC_INPUT_EVDEV err_video_unreg: video_unregister_device(&pdev->vdev); +#endif err_unregister_v4l2_dev: v4l2_device_unregister(&pdev->v4l2_dev); err_free_controls: