virtio: wrap find_vqs
We are going to add more parameters to find_vqs, let's wrap the call so we don't need to tweak all drivers every time. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
@@ -573,9 +573,9 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
|
||||
|
||||
vsock->vdev = vdev;
|
||||
|
||||
ret = vsock->vdev->config->find_vqs(vsock->vdev, VSOCK_VQ_MAX,
|
||||
vsock->vqs, callbacks, names,
|
||||
NULL);
|
||||
ret = virtio_find_vqs(vsock->vdev, VSOCK_VQ_MAX,
|
||||
vsock->vqs, callbacks, names,
|
||||
NULL);
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user