From: Ankit Kumar Date: Wed, 22 Jan 2025 21:15:47 +0000 (+0530) Subject: filesetup: remove unnecessary check X-Git-Tag: fio-3.40~62 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5041533f8325df0f14235b1a18e3266bf7944bd1;p=fio.git filesetup: remove unnecessary check If read_iolog_file is set, the goto statement moves it beyond this point. So remove this redundant check. Signed-off-by: Ankit Kumar --- diff --git a/filesetup.c b/filesetup.c index cb42a852..50406c69 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1388,16 +1388,10 @@ int setup_files(struct thread_data *td) if (err) goto err_out; - /* - * iolog already set the total io size, if we read back - * stored entries. - */ - if (!o->read_iolog_file) { - if (o->io_size) - td->total_io_size = o->io_size * o->loops; - else - td->total_io_size = o->size * o->loops; - } + if (o->io_size) + td->total_io_size = o->io_size * o->loops; + else + td->total_io_size = o->size * o->loops; done: if (td->o.zone_mode == ZONE_MODE_ZBD) {