We won't reference var 'i' anymore; there is no need to assign a value to it.
cc: Michael S. Tsirkin <m...@redhat.com> Signed-off-by: Yuanhan Liu <yuanhan....@linux.intel.com> --- hw/virtio/vhost.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 2712c6f..86ea26f 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1158,7 +1158,6 @@ fail_vq: hdev->vqs + i, hdev->vq_index + i); } - i = hdev->nvqs; fail_mem: fail_features: -- 1.9.0