diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-21 15:25:42 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:41 -0500 |
commit | 9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c (patch) | |
tree | ba077d0f67589e920591e9f269d10a1f450050fe /hw/device-hotplug.c | |
parent | 1cc33683c8952c62343e06cceffba5c7990e3b7b (diff) | |
download | qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.zip qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.tar.gz qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.tar.bz2 |
kill dead nic unplug code.
Cleanup on unplug happens via qdev->exit() callback now.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/device-hotplug.c')
-rw-r--r-- | hw/device-hotplug.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index c0cfd31..9cc8376 100644 --- a/hw/device-hotplug.c +++ b/hw/device-hotplug.c @@ -46,19 +46,3 @@ DriveInfo *add_init_drive(const char *optstr) return dinfo; } - -void destroy_nic(dev_match_fn *match_fn, void *arg) -{ - int i; - NICInfo *nic; - - for (i = 0; i < MAX_NICS; i++) { - nic = &nd_table[i]; - if (nic->used) { - if (nic->private && match_fn(nic->private, arg)) { - qemu_del_vlan_client(nic->vc); - net_client_uninit(nic); - } - } - } -} |