summary refs log tree commit diff stats
path: root/hw/mac_nvram.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mac_nvram.c')
-rw-r--r--hw/mac_nvram.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c
index 2c900614cd..3d3e557297 100644
--- a/hw/mac_nvram.c
+++ b/hw/mac_nvram.c
@@ -132,13 +132,7 @@ MacIONVRAMState *macio_nvram_init (int *mem_index, target_phys_addr_t size)
     MacIONVRAMState *s;
 
     s = qemu_mallocz(sizeof(MacIONVRAMState));
-    if (!s)
-        return NULL;
     s->data = qemu_mallocz(size);
-    if (!s->data) {
-        qemu_free(s);
-	return NULL;
-    }
     s->size = size;
 
     s->mem_index = cpu_register_io_memory(0, nvram_read, nvram_write, s);