From 7be94fba54cfd5ad8c2057ce3471011953850612 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 30 Oct 2008 17:51:48 +0000 Subject: [PATCH] Virtio: remove unused variable Remove a variable from virtqueue_pop() which has been unused since the very start. Signed-off-by: Mark McLoughlin Signed-off-by: Avi Kivity --- hw/virtio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index e675f4312b..8fac354c92 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -144,7 +144,6 @@ void virtqueue_push(VirtQueue *vq, const VirtQueueElement *elem, int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem) { unsigned int i, head; - unsigned int position; /* Check it isn't doing very strange things with descriptor numbers. */ if ((uint16_t)(vq->vring.avail->idx - vq->last_avail_idx) > vq->vring.num) @@ -164,7 +163,7 @@ int virtqueue_pop(VirtQueue *vq, VirtQueueElement *elem) errx(1, "Guest says index %u is available", head); /* When we start there are none of either input nor output. */ - position = elem->out_num = elem->in_num = 0; + elem->out_num = elem->in_num = 0; i = head; do { -- 2.11.4.GIT