summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-01-08 13:41:13 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-01-08 13:41:13 +1000
commit9d2156e5a676c53245ac8c919de042b41173ae22 (patch)
treedce47da40d612fe3c9de67ef09bf183bbc861956
parentf7850a40424f7ec0c32fb2b46d427b51b5410d99 (diff)
Don't reopen ad infinitum if reopen_attempts is 0.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index faab8f3..8d6d793 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -378,7 +378,7 @@ EvdevReopenTimer(OsTimerPtr timer, CARD32 time, pointer arg)
pEvdev->reopen_left--;
- if (!pEvdev->reopen_left)
+ if (pEvdev->reopen_left <= 0)
{
xf86Msg(X_ERROR, "%s: Failed to reopen device after %d attempts.\n",
pInfo->name, pEvdev->reopen_attempts);