From 33e66b86d89040f0a9e99aa53deb74ce8936a649 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 7 Oct 2009 01:15:57 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- hw/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index 1debdab4b4..da5cc56256 100644 --- a/hw/pci.c +++ b/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) { -- cgit v1.2.3