]> git.baikalelectronics.ru Git - kernel.git/commit
[media] hdpvr: hide unused variable
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 14:09:56 +0000 (12:09 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 15:14:27 +0000 (13:14 -0200)
commite19478ceaa1d29fdea538012a99728f55a1990e8
tree8eed6ebafeae5b4ba2a09d8b1ac6180237ab6c33
parent980ca6094057e23aa03caeb0f7a8f29becdede46
[media] hdpvr: hide unused variable

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>
drivers/media/usb/hdpvr/hdpvr-core.c