From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV0tT-0001D7-EP for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV0tN-0001Ak-HC for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:06 -0500 Received: from [199.232.76.173] (port=35078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV0tN-0001AY-86 for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8227) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV0tM-0004Jd-MW for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:00 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0DAtxLa015873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Jan 2010 05:55:59 -0500 From: Amit Shah Date: Wed, 13 Jan 2010 16:24:43 +0530 Message-Id: <1263380087-31821-3-git-send-email-amit.shah@redhat.com> In-Reply-To: <1263380087-31821-2-git-send-email-amit.shah@redhat.com> References: <1263380087-31821-1-git-send-email-amit.shah@redhat.com> <1263380087-31821-2-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 2/6] virtio: net: remove dead assignment List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah clang-analyzer points out value assigned to 'len' is not used. Signed-off-by: Amit Shah --- hw/virtio-net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 02d9180..6e48997 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -532,7 +532,7 @@ static ssize_t virtio_net_receive(VLANClientState *nc, const uint8_t *buf, size_ int len, total; struct iovec sg[VIRTQUEUE_MAX_SIZE]; - len = total = 0; + total = 0; if ((i != 0 && !n->mergeable_rx_bufs) || virtqueue_pop(n->rx_vq, &elem) == 0) { -- 1.6.2.5