diff options
author | Jason Wang | 2021-09-03 11:10:13 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2021-09-04 23:34:05 +0200 |
commit | 40f962ffeba627cd65121a7b2883f145e79c9c4c (patch) | |
tree | b463b7b778862f597ac3be1338cbc0160fdee646 /hw/net | |
parent | vhost-vdpa: correctly return err in vhost_vdpa_set_backend_cap() (diff) | |
download | qemu-40f962ffeba627cd65121a7b2883f145e79c9c4c.tar.gz qemu-40f962ffeba627cd65121a7b2883f145e79c9c4c.tar.xz qemu-40f962ffeba627cd65121a7b2883f145e79c9c4c.zip |
vhost_net: remove the meaningless assignment in vhost_net_start_one()
The nvqs and vqs have been initialized during vhost_net_init() and are
not expected to change during the life cycle of vhost_net
structure. So this patch removes the meaningless assignment.
Reviewed-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20210903091031.47303-4-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/vhost_net.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 10a7780a13..6ed0c39836 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -242,9 +242,6 @@ static int vhost_net_start_one(struct vhost_net *net, struct vhost_vring_file file = { }; int r; - net->dev.nvqs = 2; - net->dev.vqs = net->vqs; - r = vhost_dev_enable_notifiers(&net->dev, dev); if (r < 0) { goto fail_notifiers; |