提交 22c253d9 编写于 作者: A Amit Shah 提交者: Anthony Liguori

virtio: net: remove dead assignment

clang-analyzer points out value assigned to 'len' is not used.
Signed-off-by: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 5cdc9b76
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册