diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-09-16 13:34:46 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-20 12:27:43 +0200 |
commit | 21cfa41e91b5f49e8aa35ce768dcbfe436021db6 (patch) | |
tree | 89b19f31139234110ef5dd3ef3b0eeaa31377704 | |
parent | b3c0bfb6f949d8f1c97f390f951c0bab3e703810 (diff) |
posix-aio-compat: Removed unused offset variable
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | posix-aio-compat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 3193dbf83c..63a8faed15 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -181,7 +181,6 @@ qemu_pwritev(int fd, const struct iovec *iov, int nr_iov, off_t offset) static ssize_t handle_aiocb_rw_vector(struct qemu_paiocb *aiocb) { - size_t offset = 0; ssize_t len; do { @@ -189,12 +188,12 @@ static ssize_t handle_aiocb_rw_vector(struct qemu_paiocb *aiocb) len = qemu_pwritev(aiocb->aio_fildes, aiocb->aio_iov, aiocb->aio_niov, - aiocb->aio_offset + offset); + aiocb->aio_offset); else len = qemu_preadv(aiocb->aio_fildes, aiocb->aio_iov, aiocb->aio_niov, - aiocb->aio_offset + offset); + aiocb->aio_offset); } while (len == -1 && errno == EINTR); if (len == -1) |