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>
This commit is contained in:
parent
5cdc9b76e3
commit
22c253d9d6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user