mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
committed by
Anthony Liguori
parent
1cc33683c8
commit
9ad4531e1e
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user