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/pcnet.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/pcnet.c') diff --git a/hw/pcnet.c b/hw/pcnet.c index 828d980..5642099 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -2089,8 +2089,6 @@ void lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, qemu_check_nic_model(nd, "lance"); d = qemu_mallocz(sizeof(PCNetState)); - if (!d) - return; lance_io_memory = cpu_register_io_memory(0, lance_mem_read, lance_mem_write, d); -- cgit v1.1