virtio_fs: convert to LE accessors

Virtio fs is modern-only. Use LE accessors for config space.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2020-08-05 05:39:36 -04:00
parent b025584098
commit 2c0349ec1a
1 changed files with 2 additions and 2 deletions

View File

@ -606,8 +606,8 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev,
unsigned int i; unsigned int i;
int ret = 0; int ret = 0;
virtio_cread(vdev, struct virtio_fs_config, num_request_queues, virtio_cread_le(vdev, struct virtio_fs_config, num_request_queues,
&fs->num_request_queues); &fs->num_request_queues);
if (fs->num_request_queues == 0) if (fs->num_request_queues == 0)
return -EINVAL; return -EINVAL;