Input: nomadik-ske-keypad - fix a loop timeout test
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Dec 2018 08:38:30 +0000 (00:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:07 +0000 (10:24 +0100)
commitecda57f33e36c43da1866056b5d00bd7b99e20ce
tree84df1f8a1e8f0461167ed2fa40e0470d29732124
parent4d38661dcbb1e96f11d34b3b4130bd7b6639ccc4
Input: nomadik-ske-keypad - fix a loop timeout test

[ Upstream commit 4d8f727b83bcd6702c2d210330872c9122d2d360 ]

The loop exits with "timeout" set to -1 not to 0.

Fixes: 1158f0f16224 ("Input: add support for Nomadik SKE keypad controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/nomadik-ske-keypad.c