Skip to contentSkip to conversation

vhost: simple clean up

PATCH In review weiqi 4 participants 4 messages Apr 7, 2017

lore
Share & tools
lore

weiqi

author
#0 lore raw

PATCH 1/3 vhost: simple clean up

From: Wei Qi <[email protected]>

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

---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)
hw/virtio/vhost.c +0 -1
index 613494d..5c57983 100644
@@ -1557,7 +1557,6 @@ fail_vq:
                              hdev->vqs + i,
                              hdev->vq_index + i);
     }
-    i = hdev->nvqs;
 
 fail_mem:
 fail_features:
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/3
#1 lore raw
Quoted 3 lines · weiqi

From: Wei Qi <[email protected]>

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

nit: The line should not be longer than 76 characters [0].

[0] http://wiki.qemu-project.org/Contribute/SubmitAPatch#Write_a_meaningful_commit_message

Quoted 5 lines
---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)
Quoted 17 lines
hw/virtio/vhost.c +0 -1
index 613494d..5c57983 100644
@@ -1557,7 +1557,6 @@ fail_vq:
                              hdev->vqs + i,
                              hdev->vq_index + i);
     }
-    i = hdev->nvqs;
 
 fail_mem:
 fail_features:
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 8 lines · Sahid Orentino Ferdjaoui
Quoted 3 lines · weiqi

From: Wei Qi <[email protected]>

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

nit: The line should not be longer than 76 characters [0].

[0] http://wiki.qemu-project.org/Contribute/SubmitAPatch#Write_a_meaningful_commit_message

Also, make sure you have proper threading. Although you sent a 0/3 cover letter (with Message-ID:
<[email protected]>), this 1/3 message is lacking both References: and In-Reply-To: headers, and therefore appears as its own top level thread.

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org