qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] vhost: simple clean up
@ 2017-04-07  6:58 weiqi
  2017-04-07  8:38 ` Sahid Orentino Ferdjaoui
  2017-04-07 14:47 ` Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: weiqi @ 2017-04-07  6:58 UTC (permalink / raw)
  To: mst; +Cc: qemu-devel, arei.gonglei, Wei Qi

From: Wei Qi <weiqi4@huawei.com>

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

Signed-off-by: Wei Qi <weiqi4@huawei.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-07 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07  6:58 [Qemu-devel] [PATCH 1/3] vhost: simple clean up weiqi
2017-04-07  8:38 ` Sahid Orentino Ferdjaoui
2017-04-07 13:51   ` Eric Blake
2017-04-07 14:47 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).