Skip to content

Commit 499c8b4

Browse files
jasowangmstsirkin
authored andcommitted
vhost-vdpa: remove the unncessary queue_index assignment
The queue_index of NetClientState should be assigned in set_netdev() afterwards, so trying to net_vhost_vdpa_init() is meaningless. This patch removes this. Reviewed-by: Stefano Garzarella <[email protected]> Signed-off-by: Jason Wang <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 74af5ee commit 499c8b4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/vhost-vdpa.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ static int net_vhost_vdpa_init(NetClientState *peer, const char *device,
165165
assert(name);
166166
nc = qemu_new_net_client(&net_vhost_vdpa_info, peer, device, name);
167167
snprintf(nc->info_str, sizeof(nc->info_str), TYPE_VHOST_VDPA);
168-
nc->queue_index = 0;
169168
s = DO_UPCAST(VhostVDPAState, nc, nc);
170169
vdpa_device_fd = qemu_open_old(vhostdev, O_RDWR);
171170
if (vdpa_device_fd == -1) {

0 commit comments

Comments
 (0)