summaryrefslogtreecommitdiff
path: root/hw/net/pcnet.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-12-23 17:53:19 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2015-01-12 10:16:23 +0000
commit57407ea44cc0a3d630b9b89a2be011f1955ce5c1 (patch)
treee3787f7db5a01db84173b5551f9a68a974f29be7 /hw/net/pcnet.h
parent64ea8038ffbf703dcd438a108d2d5499c8ff95d9 (diff)
downloadqemu-57407ea44cc0a3d630b9b89a2be011f1955ce5c1.tar.gz
net: remove all cleanup methods from NIC NetClientInfos
All NICs have a cleanup function that, in most cases, zeroes the pointer to the NICState. In some cases, it frees data belonging to the NIC. However, this function is never called except when exiting from QEMU. It is not necessary to NULL pointers and free data here; the right place to do that would be in the device's unrealize function, after calling qemu_del_nic. Zeroing the NIC multiple times is also wrong for multiqueue devices. This cleanup function gets in the way of making the NetClientStates for the NIC hold an object_ref reference to the object, so get rid of it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/pcnet.h')
-rw-r--r--hw/net/pcnet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/net/pcnet.h b/hw/net/pcnet.h
index f8e8a6f6ba..3f12fe3c13 100644
--- a/hw/net/pcnet.h
+++ b/hw/net/pcnet.h
@@ -63,7 +63,6 @@ uint32_t pcnet_bcr_readw(PCNetState *s, uint32_t rap);
int pcnet_can_receive(NetClientState *nc);
ssize_t pcnet_receive(NetClientState *nc, const uint8_t *buf, size_t size_);
void pcnet_set_link_status(NetClientState *nc);
-void pcnet_common_cleanup(PCNetState *d);
int pcnet_common_init(DeviceState *dev, PCNetState *s, NetClientInfo *info);
extern const VMStateDescription vmstate_pcnet;
#endif