Patchwork removed usused offset variable

login
register
mail settings
Submitter Frediano Ziglio
Date Sept. 16, 2011, 11:34 a.m.
Message ID <1316172886-31461-1-git-send-email-freddy77@gmail.com>
Download mbox | patch
Permalink /patch/114920/
State New
Headers show

Comments

Frediano Ziglio - Sept. 16, 2011, 11:34 a.m.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
---
 posix-aio-compat.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
Kevin Wolf - Sept. 19, 2011, 10:26 a.m.
Am 16.09.2011 13:34, schrieb Frediano Ziglio:
> Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
> ---
>  posix-aio-compat.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)

Thanks, applied to the block branch.

Kevin

Patch

diff --git a/posix-aio-compat.c b/posix-aio-compat.c
index 3193dbf..63a8fae 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)