aboutsummaryrefslogtreecommitdiff
path: root/posix-aio-compat.c
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2011-09-16 13:34:46 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-20 12:27:43 +0200
commit21cfa41e91b5f49e8aa35ce768dcbfe436021db6 (patch)
tree89b19f31139234110ef5dd3ef3b0eeaa31377704 /posix-aio-compat.c
parentb3c0bfb6f949d8f1c97f390f951c0bab3e703810 (diff)
posix-aio-compat: Removed unused offset variable
Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'posix-aio-compat.c')
-rw-r--r--posix-aio-compat.c5
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)