[PATCH] Only unlink the same file once
[fio.git] / log.c
diff --git a/log.c b/log.c
index 51eaee6ecae085e6bc71184148ba26bf8574c1e1..17a4cdf782c9b02c7c897454abcae6bf66dec34e 100644 (file)
--- a/log.c
+++ b/log.c
@@ -170,10 +170,12 @@ static int init_iolog_write(struct thread_data *td)
 
 int init_iolog(struct thread_data *td)
 {
+       int ret = 0;
+
        if (td->read_iolog)
-               return init_iolog_read(td);
+               ret = init_iolog_read(td);
        else if (td->write_iolog)
-               return init_iolog_write(td);
+               ret = init_iolog_write(td);
 
        return 0;
 }