]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwc: hide unused label
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 16:17:24 +0000 (14:17 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:45 +0000 (11:03 +0100)
commitf21a7417311c1d000f754749c0fe3b74d3a95230
tree6529e1817ef9a83b875c3c187d12150d4ab4cbf0
parent11d5aa1935a94bbe734aafe1d78a8725ec8f0faf
pwc: hide unused label

commit 1f6bcd011464cb36059e2562f72baf75f98b732d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/pwc/pwc-if.c