1
0
forked from drath/libratbag

roccat: fix the neverending story^Wtimeout

If we don't change count, the value of count < MAX_RETRY is always true.

Coverity is a champ, isn't it?

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-04-27 11:43:31 +10:00
committed by bentiss
parent 09b5ae14b1
commit 04ebd96bb7

View File

@@ -303,6 +303,7 @@ roccat_wait_ready(struct ratbag_device *device)
return 2;
msleep(10);
count++;
}
return -ETIMEDOUT;