diff options
author | Andreas Färber <afaerber@suse.de> | 2013-07-30 04:05:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-09 21:46:49 +0100 |
commit | 0ba94b6f94a5b0bed9f125ce4c3348adc83db5de (patch) | |
tree | 50b84dfb09b8bed2868319b36d17955be399b0dd /hw/virtio | |
parent | 71a6520b83414b4ebe3ecfdee3dc3a70db98c91f (diff) | |
download | qemu-0ba94b6f94a5b0bed9f125ce4c3348adc83db5de.zip qemu-0ba94b6f94a5b0bed9f125ce4c3348adc83db5de.tar.gz qemu-0ba94b6f94a5b0bed9f125ce4c3348adc83db5de.tar.bz2 |
virtio: Complete converting VirtioDevice to QOM realize
Drop VirtioDeviceClass::init.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 4070b37..1dba284 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -1156,18 +1156,12 @@ static void virtio_device_realize(DeviceState *dev, Error **errp) VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(dev); Error *err = NULL; - assert(vdc->init != NULL || vdc->realize != NULL); if (vdc->realize != NULL) { vdc->realize(dev, &err); if (err != NULL) { error_propagate(errp, err); return; } - } else { - if (vdc->init(vdev) < 0) { - error_setg(errp, "Device initialization failed."); - return; - } } virtio_bus_device_plugged(vdev); } |