aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-01-13 16:24:43 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-13 17:14:15 -0600
commit22c253d9d659af76279c9d96acbbf105ea120753 (patch)
treef1dfd40034d8bd7301092d0479fa68686dc7dde0
parent5cdc9b76e34d06857ee8d03ea70e8793b8af06e1 (diff)
downloadqemu-22c253d9d659af76279c9d96acbbf105ea120753.zip
qemu-22c253d9d659af76279c9d96acbbf105ea120753.tar.gz
qemu-22c253d9d659af76279c9d96acbbf105ea120753.tar.bz2
virtio: net: remove dead assignment
clang-analyzer points out value assigned to 'len' is not used. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/virtio-net.c2
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) {