summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);