mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
virtiofs: delete unused parameter for virtio_fs_cleanup_vqs
fs parameter not used. So, it needs to be deleted. Signed-off-by: Deming Wang <wangdeming@inspur.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
9ccf47b26b
commit
1e5b9e048c
1 changed files with 3 additions and 4 deletions
|
@ -741,8 +741,7 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev,
|
|||
}
|
||||
|
||||
/* Free virtqueues (device must already be reset) */
|
||||
static void virtio_fs_cleanup_vqs(struct virtio_device *vdev,
|
||||
struct virtio_fs *fs)
|
||||
static void virtio_fs_cleanup_vqs(struct virtio_device *vdev)
|
||||
{
|
||||
vdev->config->del_vqs(vdev);
|
||||
}
|
||||
|
@ -895,7 +894,7 @@ static int virtio_fs_probe(struct virtio_device *vdev)
|
|||
|
||||
out_vqs:
|
||||
virtio_reset_device(vdev);
|
||||
virtio_fs_cleanup_vqs(vdev, fs);
|
||||
virtio_fs_cleanup_vqs(vdev);
|
||||
kfree(fs->vqs);
|
||||
|
||||
out:
|
||||
|
@ -927,7 +926,7 @@ static void virtio_fs_remove(struct virtio_device *vdev)
|
|||
virtio_fs_stop_all_queues(fs);
|
||||
virtio_fs_drain_all_queues_locked(fs);
|
||||
virtio_reset_device(vdev);
|
||||
virtio_fs_cleanup_vqs(vdev, fs);
|
||||
virtio_fs_cleanup_vqs(vdev);
|
||||
|
||||
vdev->priv = NULL;
|
||||
/* Put device reference on virtio_fs object */
|
||||
|
|
Loading…
Reference in a new issue