Input: omap-keypad - remove dead check
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Jan 2016 23:06:51 +0000 (15:06 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 8 Jan 2016 01:26:23 +0000 (17:26 -0800)
commit35f8679f577ae5673a778598bcbe7b45cbec8923
tree5663892880ef6dbb1088927c2ef27233607f29a1
parent3b7474ec0d7150044f91e3af460067f79d466522
Input: omap-keypad - remove dead check

Commit da1f026b532ce944d74461497dc6d8c16456466e ("Keyboard: omap-keypad:
use matrix_keypad.h") switched the driver to use matrix keypad
infrastructure, which made array of keycodes to be unsigned short, and
caused the test for negativity never trigger. This leads to the following
static checker warning:

drivers/input/keyboard/omap-keypad.c:158 omap_kp_tasklet()
warn: 'keycodes[]' is never negative.

Given that we did not care about this check for a few years already let's
simply remove it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/omap-keypad.c