From 487414f1cbd638beb0227c7da71fe7b8a821e155 Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 5 Feb 2009 22:06:05 +0000 Subject: hw: remove error handling from qemu_malloc() callers (Avi Kivity) Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6529 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pci.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index c778948..0e57d21 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -178,8 +178,6 @@ PCIDevice *pci_register_device(PCIBus *bus, const char *name, found: ; } pci_dev = qemu_mallocz(instance_size); - if (!pci_dev) - return NULL; pci_dev->bus = bus; pci_dev->devfn = devfn; pstrcpy(pci_dev->name, sizeof(pci_dev->name), name); -- cgit v1.1