backend: Removing double definition of the same variable
authorErwan Velu <erwan@redhat.com>
Tue, 3 Oct 2017 09:06:37 +0000 (11:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 15:06:33 +0000 (09:06 -0600)
While f is defined as "struct fio_file *f = io_u->file;", it's pretty
useless to define it just before its usage.

This patch simply remove the 2nd definition of f.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c

index e4eff378dfd4c736cdcf20436124ac147db4afdf..029d0054d01ded07fab0aa5fecfac3436eb33973 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -499,7 +499,6 @@ int io_queue_event(struct thread_data *td, struct io_u *io_u, int *ret,
                        if (ddir_rw(io_u->ddir))
                                td->ts.short_io_u[io_u->ddir]++;
 
-                       f = io_u->file;
                        if (io_u->offset == f->real_file_size)
                                goto sync_done;