diff options
author | Xianting Tian <xianting_tian@126.com> | 2021-06-23 11:16:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-23 13:52:22 -0700 |
commit | a2f7dc00ea51a9dbb7c5b4ca8e508acb24f7ca8c (patch) | |
tree | 51e59a174d3de14dbe9310a180b009eb09992375 /drivers/net/virtio_net.c | |
parent | 10ed7ce42b13790ba85f8e10110d89a2bce58807 (diff) | |
download | linux-a2f7dc00ea51a9dbb7c5b4ca8e508acb24f7ca8c.tar.bz2 |
virtio_net: Use virtio_find_vqs_ctx() helper
virtio_find_vqs_ctx() is defined but never be called currently,
it is the right place to use it.
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0416a7e00914..b0b81458ca94 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -2847,8 +2847,8 @@ static int virtnet_find_vqs(struct virtnet_info *vi) ctx[rxq2vq(i)] = true; } - ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks, - names, ctx, NULL); + ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks, + names, ctx, NULL); if (ret) goto err_find; |