From 22c253d9d659af76279c9d96acbbf105ea120753 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Wed, 13 Jan 2010 16:24:43 +0530 Subject: [PATCH] virtio: net: remove dead assignment clang-analyzer points out value assigned to 'len' is not used. Signed-off-by: Amit Shah Signed-off-by: Anthony Liguori --- hw/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 02d9180f74..6e48997c0e 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) { -- 2.11.0