Commit 2c0349ec authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

virtio_fs: convert to LE accessors

Virtio fs is modern-only. Use LE accessors for config space.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b0255840
...@@ -606,7 +606,7 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev, ...@@ -606,7 +606,7 @@ 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;
......
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