From 92f3bef5beee35cac425f227529078b56e578b44 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/iommu.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/iommu.c') diff --git a/hw/iommu.c b/hw/iommu.c index 82a4932884..cde5f1f0ba 100644 --- a/hw/iommu.c +++ b/hw/iommu.c @@ -371,8 +371,6 @@ void *iommu_init(target_phys_addr_t addr, uint32_t version, qemu_irq irq) int iommu_io_memory; s = qemu_mallocz(sizeof(IOMMUState)); - if (!s) - return NULL; s->version = version; s->irq = irq; -- cgit v1.2.3