filesetup: pre_read_files() can use a bool
[fio.git] / backend.c
index c14f37ca55e809f534652ae6e289a214486277d3..6dbe59b250de15a9c7b2d53664e6e82dfcb90898 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1698,10 +1698,8 @@ static void *thread_main(void *data)
        if (o->exec_prerun && exec_string(o, o->exec_prerun, (const char *)"prerun"))
                goto err;
 
-       if (o->pre_read) {
-               if (pre_read_files(td) < 0)
-                       goto err;
-       }
+       if (o->pre_read && !pre_read_files(td))
+               goto err;
 
        fio_verify_init(td);