]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: tca8418_keypad - remove double read of key event register
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 13 Feb 2017 23:45:59 +0000 (15:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Mar 2018 10:17:51 +0000 (11:17 +0100)
commit81e510a3f679814dffaaa4f8ee507f19ae2d2805
tree3a4149847b565e83e4fc6104dcd939d678561b31
parent1e10ddb115ef86754cf66039f802c88aa97c6893
Input: tca8418_keypad - remove double read of key event register

commit 9dd46c02532a6bed6240101ecf4bbc407f8c6adf upstream.

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>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/keyboard/tca8418_keypad.c