qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH V3 13/44] virtio-net: cleanup: remove qdev field.


From: fred . konrad
Subject: [Qemu-devel] [PATCH V3 13/44] virtio-net: cleanup: remove qdev field.
Date: Tue, 15 Jan 2013 15:09:27 +0100

From: KONRAD Frederic <address@hidden>

The qdev field is no longer needed. Just drop it.

Signed-off-by: KONRAD Frederic <address@hidden>
---
 hw/virtio-net.c | 1 -
 hw/virtio-net.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index 62b8cb5..0445345 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -1068,7 +1068,6 @@ static int virtio_net_device_init(VirtIODevice *vdev)
 
     n->vlans = g_malloc0(MAX_VLAN >> 3);
 
-    n->qdev = qdev;
     register_savevm(qdev, "virtio-net", -1, VIRTIO_NET_VM_VERSION,
                     virtio_net_save, virtio_net_load, n);
 
diff --git a/hw/virtio-net.h b/hw/virtio-net.h
index 3246a28..a01416b 100644
--- a/hw/virtio-net.h
+++ b/hw/virtio-net.h
@@ -168,7 +168,6 @@ typedef struct VirtIONet {
     uint32_t *vlans;
     virtio_net_conf net_conf;
     NICConf nic_conf;
-    DeviceState *qdev;
 } VirtIONet;
 
 #define VIRTIO_NET_CTRL_MAC    1
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]