Don't reopen ad infinitum if reopen_attempts is 0.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2010-01-08 13:41:13 +10:00
parent f7850a4042
commit 9d2156e5a6

View File

@@ -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);