vhost: remove unnecessary code
PATCH 1/1 vhost: remove unnecessary code
We won't reference var 'i' anymore; there is no need to assign a value to it.
cc Michael S. Tsirkin <[email protected]>
Signed-off-by Yuanhan Liu <[email protected]>
--- hw/virtio/vhost.c | 1 - 1 file changed, 1 deletion(-)
hw/virtio/vhost.c +0 -1
@@ -1158,7 +1158,6 @@ fail_vq: hdev->vqs + i, hdev->vq_index + i); } - i = hdev->nvqs; fail_mem: fail_features:
Signature · 1 line
1.9.0
Hi
Quoted 14 lines · Yuanhan Liu
We won't reference var 'i' anymore; there is no need to assign a value to it.
cc Michael S. Tsirkin <[email protected]>Signed-off-by Yuanhan Liu <[email protected]>--- hw/virtio/vhost.c | 1 - 1 file changed, 1 deletion(-)hw/virtio/vhost.c +0
-0
hw/virtio/vhost.c fail_vq: · line 1163
Quoted 7 lines
hw/virtio/vhost.c +0
-1@@ -1158,7 +1158,6 @@ fail_vq: hdev->vqs + i, hdev->vq_index + i); } - i = hdev->nvqs; fail_mem: fail_features:
Reviewed-by Marc-André Lureau <[email protected]>
Signature · 1 line
Marc-André Lureau