From 05d9d86e06f8944f3b5c494058f4844619f7d650 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 3 Oct 2017 11:06:37 +0200 Subject: [PATCH] backend: Removing double definition of the same variable 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 --- backend.c | 1 - 1 file changed, 1 deletion(-) diff --git a/backend.c b/backend.c index e4eff378..029d0054 100644 --- 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; -- 2.25.1