projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cdc9b7
)
virtio: net: remove dead assignment
author
Amit Shah
<amit.shah@redhat.com>
Wed, 13 Jan 2010 10:54:43 +0000
(16:24 +0530)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 13 Jan 2010 23:14:15 +0000
(17:14 -0600)
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>
hw/virtio-net.c
patch
|
blob
|
history
diff --git
a/hw/virtio-net.c
b/hw/virtio-net.c
index 02d9180f743b46d49f6c8129aa569d4182934df0..6e48997c0e4aadafd35ef73783394afef29dbabd 100644
(file)
--- 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) {