diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-01-26 12:09:56 -0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-25 11:03:49 +0100 |
| commit | a32040f7bbaf3c3800452657f9864ec8abeb10ef (patch) | |
| tree | 1eb2a571d27947d55bd56804c16e0c8b3b730b8e /tools/perf/scripts/python | |
| parent | 3d2ff1139dfc27e385b129334d41e9acf4d71062 (diff) | |
hdpvr: hide unused variable
commit b97baa3e22e18dac42001e665cf27ad1211bf878 upstream.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
