]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] hdpvr: hide unused variable
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 14:09:56 +0000 (12:09 -0200)
committerSasha Levin <alexander.levin@microsoft.com>
Sun, 4 Mar 2018 15:28:32 +0000 (10:28 -0500)
commit8966f8532c3dbbc0d29aa1008e142e0889ca8241
tree690fc0061c0b910bd865b8e7041facd14754b541
parent398b3fc0b14094e415dd348494c5eff2adb6d849
[media] hdpvr: hide unused variable

[ Upstream commit b97baa3e22e18dac42001e665cf27ad1211bf878 ]

The i2c client pointer is only used when CONFIG_I2C is set, and
otherwise produces a compile-time warning:

drivers/media/usb/hdpvr/hdpvr-core.c: In function 'hdpvr_probe':
drivers/media/usb/hdpvr/hdpvr-core.c:276:21: error: unused variable 'client' [-Werror=unused-variable]

This uses the same #ifdef to hide the variable when the code using
it is hidden.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/media/usb/hdpvr/hdpvr-core.c