]> git.baikalelectronics.ru Git - kernel.git/commit
[media] pwc: hide unused label
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 16:17:24 +0000 (14:17 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 17:56:22 +0000 (14:56 -0300)
commit632a797b7c116edf3478a34b5733dca4e815997e
tree3f74dd49a6c09cfb821bf90fa9a9f71a00c6fe47
parent056b9207dc253b945f4cd8a3369247f4f3c3f152
[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>
drivers/media/usb/pwc/pwc-if.c