diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2017-03-06 17:19:39 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-05-02 22:41:42 +0200 |
commit | 9b2bbdb227588455afcc3b03475fa9b0a35d83af (patch) | |
tree | 38ec6fe9fbfafcc7a388da21d7ec42a668111ec1 /drivers/scsi/virtio_scsi.c | |
parent | ringtest: fix an assert statement (diff) | |
download | linux-9b2bbdb227588455afcc3b03475fa9b0a35d83af.tar.xz linux-9b2bbdb227588455afcc3b03475fa9b0a35d83af.zip |
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>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
-rw-r--r-- | drivers/scsi/virtio_scsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 939c47df73fa..e9222dcb9707 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -870,8 +870,7 @@ static int virtscsi_init(struct virtio_device *vdev, } /* Discover virtqueues and write information to configuration. */ - err = vdev->config->find_vqs(vdev, num_vqs, vqs, callbacks, names, - &desc); + err = virtio_find_vqs(vdev, num_vqs, vqs, callbacks, names, &desc); if (err) goto out; |