virtio_net: Use virtio_find_vqs_ctx() helper
authorXianting Tian <xianting_tian@126.com>
Wed, 23 Jun 2021 15:16:22 +0000 (11:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2021 20:52:22 +0000 (13:52 -0700)
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>
drivers/net/virtio_net.c

index 0416a7e..b0b8145 100644 (file)
@@ -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;