qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/3] vhost: simple clean up


From: weiqi
Subject: [Qemu-devel] [PATCH 1/3] vhost: simple clean up
Date: Fri, 7 Apr 2017 14:58:46 +0800

From: Wei Qi <address@hidden>

It is unnecessary to assign 'hdev->nvqs' to 'i', because 'hdev->nvqs' unused 
after assignment, so remove it.

Signed-off-by: Wei Qi <address@hidden>
---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index 613494d..5c57983 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1557,7 +1557,6 @@ fail_vq:
                              hdev->vqs + i,
                              hdev->vq_index + i);
     }
-    i = hdev->nvqs;
 
 fail_mem:
 fail_features:
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]