summaryrefslogtreecommitdiff
path: root/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend.c b/backend.c
index c14f37ca..6dbe59b2 100644
--- 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);