summary refs log tree commit diff stats
path: root/hw/m48t59.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/m48t59.c')
-rw-r--r--hw/m48t59.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/m48t59.c b/hw/m48t59.c
index c4107dde55..0cfdab39f2 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -622,13 +622,7 @@ m48t59_t *m48t59_init (qemu_irq IRQ, target_phys_addr_t mem_base,
     target_phys_addr_t save_base;
 
     s = qemu_mallocz(sizeof(m48t59_t));
-    if (!s)
-	return NULL;
     s->buffer = qemu_mallocz(size);
-    if (!s->buffer) {
-        qemu_free(s);
-        return NULL;
-    }
     s->IRQ = IRQ;
     s->size = size;
     s->io_base = io_base;