]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tca8418 - remove set but not used variable 'max_keys'
authorYueHaibing <yuehaibing@huawei.com>
Sun, 26 May 2019 16:19:02 +0000 (09:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 May 2019 02:01:42 +0000 (19:01 -0700)
commit573ef256a5415d0c77964af277667478cf89671b
tree45d5a17aa3917640402daf87ef522d99865bf4b3
parentff79fc0486a3bd5a75d734246c14ba02244ceb75
Input: tca8418 - remove set but not used variable 'max_keys'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/input/keyboard/tca8418_keypad.c: In function tca8418_keypad_probe:
drivers/input/keyboard/tca8418_keypad.c:269:24: warning: variable max_keys set but not used [-Wunused-but-set-variable]

It's not used since commit 01ae7a39df88 ("Input:
tca8418-keypad - switch to using managed resources")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tca8418_keypad.c