From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 1/6] kvm: qemu: virtio: remove unused variable Date: Thu, 30 Oct 2008 17:51:48 +0000 Message-ID: <1225389113-28332-2-git-send-email-markmc@redhat.com> References: <> <1225389113-28332-1-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org, Mark McLoughlin To: Avi Kivity Return-path: Received: from mail23.svc.cra.dublin.eircom.net ([159.134.118.145]:31070 "HELO mail23.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758121AbYJ3RxX (ORCPT ); Thu, 30 Oct 2008 13:53:23 -0400 In-Reply-To: <1225389113-28332-1-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Remove a variable from virtqueue_pop() which has been unused since the very start. Signed-off-by: Mark McLoughlin --- qemu/hw/virtio.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/qemu/hw/virtio.c b/qemu/hw/virtio.c index e675f43..8fac354 100644 --- a/qemu/hw/virtio.c +++ b/qemu/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 { -- 1.5.4.3