From: Erwan Velu Date: Tue, 3 Oct 2017 09:06:37 +0000 (+0200) Subject: backend: Removing double definition of the same variable X-Git-Tag: fio-3.2~70 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=05d9d86e06f8944f3b5c494058f4844619f7d650;p=fio.git 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 --- 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;