diff options
author | Markus Armbruster <armbru@redhat.com> | 2009-10-07 01:15:57 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-07 08:54:54 -0500 |
commit | 33e66b86d89040f0a9e99aa53deb74ce8936a649 (patch) | |
tree | a356cfe20774dbc9e6107d8824414c1ea75599ce /hw/pci.c | |
parent | 18cfeb52d17825dddadfc74e99255530aa889136 (diff) |
Check return value of qdev_init()
But do so only where it may actually fail. Leave the rest for the
next commit.
Patchworks-ID: 35167
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -833,6 +833,7 @@ static const char * const pci_nic_names[] = { }; /* Initialize a PCI NIC. */ +/* FIXME callers should check for failure, but don't */ PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model, const char *default_devaddr) { |