diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-21 15:25:41 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:41 -0500 |
commit | 1cc33683c8952c62343e06cceffba5c7990e3b7b (patch) | |
tree | 8aab992bc24ac2bdcedb9a6d2b86ffa606fd2ec9 /hw/pci.c | |
parent | 4c91cd28105485ae04b5cc9e5150e346fddf0874 (diff) |
zap DeviceState->nd
No users left.
Also cleanup obsolete helper functions.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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; |