mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
18cfeb52d1
commit
33e66b86d8
5 changed files with 12 additions and 6 deletions
1
hw/pci.c
1
hw/pci.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue