From 181103cd52710b987799ae980bb92407994243bc Mon Sep 17 00:00:00 2001 From: KONRAD Frederic Date: Wed, 24 Apr 2013 10:21:20 +0200 Subject: virtio: remove the function pointer. This remove the function pointer in VirtIODevice, and use only VirtioDeviceClass function pointer. Signed-off-by: KONRAD Frederic Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori --- hw/virtio/virtio-rng.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/virtio/virtio-rng.c') diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 96e8075..82d7a74 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -169,8 +169,6 @@ static int virtio_rng_device_init(VirtIODevice *vdev) vrng->vq = virtio_add_queue(vdev, 8, handle_input); - vdev->get_features = get_features; - assert(vrng->conf.max_bytes <= INT64_MAX); vrng->quota_remaining = vrng->conf.max_bytes; -- cgit v1.1