cdba-server: Remove dead code

Don't count the timers, as it's not used anywhere. Clang is unhappy with that:

cdba-server.c:307:6: warning: variable 'count' set but not used [-Wunused-but-set-variable]
        int count = 0;

Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
This commit is contained in:
Konrad Dybcio
2023-09-21 09:24:24 +02:00
committed by GitHub
parent 6ea5f8f123
commit 5850ee756d

View File

@@ -304,7 +304,6 @@ static struct timeval *watch_timer_next(void)
struct timeval now;
struct timer *next;
struct timer *t;
int count = 0;
if (list_empty(&timer_watches))
return NULL;
@@ -314,7 +313,6 @@ static struct timeval *watch_timer_next(void)
list_for_each_entry(t, &timer_watches, node) {
if (timercmp(&t->tv, &next->tv, <))
next = t;
count++;
}
gettimeofday(&now, NULL);