From 3bfb53dd20223015916e9ade388a5f9d49b87172 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 22 May 2009 09:51:20 +0200 Subject: [PATCH] Remove io_u->endpos It's only set in one location and never read. Signed-off-by: Jens Axboe --- fio.h | 1 - io_u.c | 1 - 2 files changed, 2 deletions(-) diff --git a/fio.h b/fio.h index b1360dd3..22d670ef 100644 --- a/fio.h +++ b/fio.h @@ -145,7 +145,6 @@ struct io_u { void *buf; unsigned long buflen; unsigned long long offset; - unsigned long long endpos; /* * IO engine state, may be different from above when we get diff --git a/io_u.c b/io_u.c index 1e9018c4..47c02e0a 100644 --- a/io_u.c +++ b/io_u.c @@ -848,7 +848,6 @@ struct io_u *get_io_u(struct thread_data *td) /* * Set io data pointers. */ - io_u->endpos = io_u->offset + io_u->buflen; io_u->xfer_buf = io_u->buf; io_u->xfer_buflen = io_u->buflen; -- 2.25.1