diff options
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -859,14 +859,7 @@ PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model, dev = &pci_dev->qdev; if (nd->name) dev->id = qemu_strdup(nd->name); - if (qdev_prop_exists(dev, "mac")) { - /* qdev-ified */ - qdev_set_nic_properties(dev, nd); - } else { - /* legacy */ - dev->nd = nd; - nd->private = dev; - } + qdev_set_nic_properties(dev, nd); if (qdev_init(dev) < 0) return NULL; return pci_dev; |