diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-13 15:45:59 -0800 |
---|---|---|
committer | Sasha Levin <alexander.levin@microsoft.com> | 2018-03-20 23:49:51 -0400 |
commit | d60591c4ecb4881b0ed8207b1c300086e6d070b7 (patch) | |
tree | ae54d40efdcd5eea5e56a094408bf980ef406896 /drivers | |
parent | 8ccc19c2be1dcbcf049eaf2435213df862a687cf (diff) |
Input: tca8418_keypad - remove double read of key event register
[ Upstream commit 9dd46c02532a6bed6240101ecf4bbc407f8c6adf ]
There is no need to tread the same register twice in a row.
Fixes: ea4348c8462a ("Input: tca8418_keypad - hide gcc-4.9 -Wmaybe-un ...")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/keyboard/tca8418_keypad.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c index 5c4f7f8f2c20..05c3f25dd8c2 100644 --- a/drivers/input/keyboard/tca8418_keypad.c +++ b/drivers/input/keyboard/tca8418_keypad.c @@ -189,8 +189,6 @@ static void tca8418_read_keypad(struct tca8418_keypad *keypad_data) input_event(input, EV_MSC, MSC_SCAN, code); input_report_key(input, keymap[code], state); - /* Read for next loop */ - error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, ®); } while (1); input_sync(input); |