summaryrefslogtreecommitdiffstats
path: root/hw/9pfs/virtio-9p-device.c
diff options
context:
space:
mode:
authorAndreas Färber2013-08-01 00:32:45 +0200
committerPaolo Bonzini2013-12-09 21:46:48 +0100
commit0f3657ec3664b340ae20b461a7e15dbdac129179 (patch)
tree067ddb14dbab3c4c91059026a91cb8e1bc0370c1 /hw/9pfs/virtio-9p-device.c
parentvirtio-blk-dataplane: Improve error reporting (diff)
downloadqemu-0f3657ec3664b340ae20b461a7e15dbdac129179.tar.gz
qemu-0f3657ec3664b340ae20b461a7e15dbdac129179.tar.xz
qemu-0f3657ec3664b340ae20b461a7e15dbdac129179.zip
virtio-9p: QOM realize preparations
Avoid unnecessary VIRTIO_DEVICE(). Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/9pfs/virtio-9p-device.c')
-rw-r--r--hw/9pfs/virtio-9p-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c
index f0ffbe8c0d..ea21655241 100644
--- a/hw/9pfs/virtio-9p-device.c
+++ b/hw/9pfs/virtio-9p-device.c
@@ -49,7 +49,7 @@ static int virtio_9p_device_init(VirtIODevice *vdev)
FsDriverEntry *fse;
V9fsPath path;
- virtio_init(VIRTIO_DEVICE(s), "virtio-9p", VIRTIO_ID_9P,
+ virtio_init(vdev, "virtio-9p", VIRTIO_ID_9P,
sizeof(struct virtio_9p_config) + MAX_TAG_LEN);
/* initialize pdu allocator */