Skip to contentSkip to conversation

vhost: remove unnecessary code

PATCH In review Yuanhan Liu 2 participants 2 messages Aug 20, 2015 – Aug 21, 2015

lore
Share & tools
lore
#0 lore raw

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]>
---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)
hw/virtio/vhost.c +0 -1
index 2712c6f..86ea26f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

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]>
---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)
hw/virtio/vhost.c +0 -0
index 2712c6f..86ea26f 100644

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:
 
Signature · 1 line
Marc-André Lureau