filesetup: remove unnecessary check
authorAnkit Kumar <ankit.kumar@samsung.com>
Wed, 22 Jan 2025 21:15:47 +0000 (02:45 +0530)
committerVincent Fu <vincentfu@gmail.com>
Thu, 6 Mar 2025 18:58:43 +0000 (13:58 -0500)
If read_iolog_file is set, the goto statement moves it beyond this
point. So remove this redundant check.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
filesetup.c

index cb42a852c8cf3728571e54f55103e17d802ef4c4..50406c69a4f222fe808db2edf940e4c3e5a9afaf 100644 (file)
@@ -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) {