X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gettime.c;h=fa750ec85584716f7b6e37c5241130f8688dd6cb;hp=d261e22e968b864ab1723b819759e87024d1cc9f;hb=1a8e7458dd17305481413afb82b3607806adac60;hpb=6b0110cdf045b64b448ae3488c75897eddf8f090 diff --git a/gettime.c b/gettime.c index d261e22e..fa750ec8 100644 --- a/gettime.c +++ b/gettime.c @@ -534,7 +534,7 @@ int fio_monotonic_clocktest(void) struct clock_thread *threads; unsigned int nr_cpus = cpus_online(); struct clock_entry *entries; - unsigned long tentries, failed; + unsigned long tentries, failed = 0; struct clock_entry *prev, *this; uint32_t seq = 0; unsigned int i; @@ -579,7 +579,7 @@ int fio_monotonic_clocktest(void) pthread_mutex_unlock(&t->lock); } - for (failed = i = 0; i < nr_cpus; i++) { + for (i = 0; i < nr_cpus; i++) { struct clock_thread *t = &threads[i]; void *ret;