aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/pwc/pwc-if.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-26 11:17:24 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 13:56:22 -0400
commit1f6bcd011464cb36059e2562f72baf75f98b732d (patch)
tree3f74dd49a6c09cfb821bf90fa9a9f71a00c6fe47 /drivers/media/usb/pwc/pwc-if.c
parent36c0f8b32c4bd4f668cedfba6d97afaa84f055fb (diff)
[media] pwc: hide unused label
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 <arnd@arndb.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
-rw-r--r--drivers/media/usb/pwc/pwc-if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
index dd43652fdef8..b51b27a3fd61 100644
--- a/drivers/media/usb/pwc/pwc-if.c
+++ b/drivers/media/usb/pwc/pwc-if.c
@@ -1118,8 +1118,10 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
1118 1118
1119 return 0; 1119 return 0;
1120 1120
1121#ifdef CONFIG_USB_PWC_INPUT_EVDEV
1121err_video_unreg: 1122err_video_unreg:
1122 video_unregister_device(&pdev->vdev); 1123 video_unregister_device(&pdev->vdev);
1124#endif
1123err_unregister_v4l2_dev: 1125err_unregister_v4l2_dev:
1124 v4l2_device_unregister(&pdev->v4l2_dev); 1126 v4l2_device_unregister(&pdev->v4l2_dev);
1125err_free_controls: 1127err_free_controls: