projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0832e93
)
Input: nomadik-ske-keypad - fix a loop timeout test
author
Dan Carpenter
<
[email protected]
>
Fri, 21 Dec 2018 08:38:30 +0000
(
00:38
-0800)
committer
Dmitry Torokhov
<
[email protected]
>
Fri, 21 Dec 2018 08:52:37 +0000
(
00:52
-0800)
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 <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/nomadik-ske-keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/nomadik-ske-keypad.c
b/drivers/input/keyboard/nomadik-ske-keypad.c
index 8567ee47761e111b31f7c8270bdc6414de6668a1..ae3b04557074010bc708c48db877c486f9d1cd0a 100644
(file)
--- a/
drivers/input/keyboard/nomadik-ske-keypad.c
+++ b/
drivers/input/keyboard/nomadik-ske-keypad.c
@@
-100,7
+100,7
@@
static int __init ske_keypad_chip_init(struct ske_keypad *keypad)
while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--)
cpu_relax();
- if (
!timeout
)
+ if (
timeout == -1
)
return -EINVAL;
/*