Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1580156 > unrolled thread

[PATCH] Input: tca8418_keypad - remove double read of key event register

Started byDmitry Torokhov <dmitry.torokhov@gmail.com>
First post2017-02-14 01:00 +0100
Last post2017-02-14 01:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Input: tca8418_keypad - remove double read of key event  register Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-02-14 01:00 +0100

#1580156 — [PATCH] Input: tca8418_keypad - remove double read of key event register

FromDmitry Torokhov <dmitry.torokhov@gmail.com>
Date2017-02-14 01:00 +0100
Subject[PATCH] Input: tca8418_keypad - remove double read of key event register
Message-ID<tayHg-2e2-7@gated-at.bofh.it>
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>
---
 drivers/input/keyboard/tca8418_keypad.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c
index 44dd7689c571..e37e335e406f 100644
--- a/drivers/input/keyboard/tca8418_keypad.c
+++ b/drivers/input/keyboard/tca8418_keypad.c
@@ -188,8 +188,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, &reg);
 	} while (1);
 
 	input_sync(input);
-- 
2.11.0.483.g087da7b7c-goog

-- 
Dmitry

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web