浏览代码

Input: tca8418_keypad - remove double read of key event register

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>
Dmitry Torokhov 8 年之前
父节点
当前提交
9dd46c0253
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/input/keyboard/tca8418_keypad.c

+ 0 - 2
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);