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>
This commit is contained in:
parent
3ffeeef735
commit
0f3657ec36
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user