Commit 992648f5 authored by Jiri Pirko's avatar Jiri Pirko Committed by Michael S. Tsirkin

virtio: call virtio_find_vqs_info() from virtio_find_single_vq() directly

Since there are no more implementations of find_vqs() op, call
virtio_find_vqs_info() from virtio_find_single_vq() directly.
Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Message-Id: <20240708074814.1739223-8-jiri@resnulli.us>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 3c93b576
......@@ -283,10 +283,11 @@ static inline
struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
vq_callback_t *c, const char *n)
{
vq_callback_t *callbacks[] = { c };
const char *names[] = { n };
struct virtqueue_info vqs_info[] = {
{ n, c },
};
struct virtqueue *vq;
int err = virtio_find_vqs(vdev, 1, &vq, callbacks, names, NULL);
int err = virtio_find_vqs_info(vdev, 1, &vq, vqs_info, NULL);
if (err < 0)
return ERR_PTR(err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment