From 04ebd96bb77f288c9d68fa28a471324ad8d92057 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 27 Apr 2017 11:43:31 +1000 Subject: [PATCH] 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 --- src/driver-roccat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver-roccat.c b/src/driver-roccat.c index 49aac15c..2f0ecb9b 100644 --- a/src/driver-roccat.c +++ b/src/driver-roccat.c @@ -303,6 +303,7 @@ roccat_wait_ready(struct ratbag_device *device) return 2; msleep(10); + count++; } return -ETIMEDOUT;