diff --git a/hw/pci.c b/hw/pci.c index cd7ce8d9c86a96685950be31b455a5023abeb95c..7787005bdb61aa12b151b7a43cdc479f6d399c1c 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1446,8 +1446,6 @@ PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model, pci_dev = pci_create(bus, devfn, pci_nic_names[i]); dev = &pci_dev->qdev; - if (nd->name) - dev->id = qemu_strdup(nd->name); qdev_set_nic_properties(dev, nd); if (qdev_init(dev) < 0) return NULL;