[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RESEND v4 7/8] virtio-rng: cleanup: remove qdev fiel
From: |
fred . konrad |
Subject: |
[Qemu-devel] [PATCH RESEND v4 7/8] virtio-rng: cleanup: remove qdev field. |
Date: |
Wed, 24 Apr 2013 10:08:00 +0200 |
From: KONRAD Frederic <address@hidden>
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic <address@hidden>
---
hw/virtio/virtio-rng.c | 2 --
include/hw/virtio/virtio-rng.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c
index 805dd18..a1dbd1e 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 973d809..4347818 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;
--
1.7.11.7
- [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 1/8] virtio-rng: don't use pointer for configuration., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 2/8] virtio-rng: add virtio-rng device., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 3/8] virtio-rng-pci: switch to the new API., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 4/8] virtio-rng-s390: switch to the new API., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 5/8] virtio-rng-ccw: switch to the new API., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 6/8] virtio-rng: cleanup: init and exit functions., fred . konrad, 2013/04/24
- [Qemu-devel] [PATCH RESEND v4 7/8] virtio-rng: cleanup: remove qdev field.,
fred . konrad <=
- [Qemu-devel] [PATCH RESEND v4 8/8] virtio-rng: cleanup: use QOM casts., fred . konrad, 2013/04/24
- Re: [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring., Anthony Liguori, 2013/04/24