projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e5634f
)
gettime: init 'failed' before use
author
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 18:20:04 +0000
(12:20 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 18:20:04 +0000
(12:20 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime.c
patch
|
blob
|
blame
|
history
diff --git
a/gettime.c
b/gettime.c
index d261e22e968b864ab1723b819759e87024d1cc9f..fa750ec85584716f7b6e37c5241130f8688dd6cb 100644
(file)
--- 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;