From: KONRAD Frederic Date: Wed, 24 Apr 2013 08:08:00 +0000 (+0200) Subject: virtio-rng: cleanup: remove qdev field. X-Git-Tag: v1.5.0-rc0~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f3b678f5b825010a1d167e82dca26ca84a199d;p=thirdparty%2Fqemu.git virtio-rng: cleanup: remove qdev field. The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic Tested-by: Cornelia Huck Acked-by: Amit Shah Message-id: 1366790881-3026-8-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori --- diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 805dd18b769..a1dbd1e52f3 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -168,8 +168,6 @@ static int virtio_rng_device_init(VirtIODevice *vdev) vrng->vdev.get_features = get_features; - vrng->qdev = qdev; - assert(vrng->conf.max_bytes <= INT64_MAX); vrng->quota_remaining = vrng->conf.max_bytes; diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 973d8095d3a..4347818b513 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -32,8 +32,6 @@ struct VirtIORNGConf { typedef struct VirtIORNG { VirtIODevice vdev; - DeviceState *qdev; - /* Only one vq - guest puts buffer(s) on it when it needs entropy */ VirtQueue *vq;