diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:06:05 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:06:05 +0000 |
commit | 487414f1cbd638beb0227c7da71fe7b8a821e155 (patch) | |
tree | bb751c10d2d6953ea16cd8e192e0ee99a7d2ad7f /hw/ds1225y.c | |
parent | 090f1fa3237cbbc2338d29fe7ddb7d35396cddbb (diff) |
hw: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6529 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ds1225y.c')
-rw-r--r-- | hw/ds1225y.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/ds1225y.c b/hw/ds1225y.c index 64c21b722..458a7d5b8 100644 --- a/hw/ds1225y.c +++ b/hw/ds1225y.c @@ -152,13 +152,8 @@ void *ds1225y_init(target_phys_addr_t mem_base, const char *filename) QEMUFile *file; s = qemu_mallocz(sizeof(ds1225y_t)); - if (!s) - return NULL; s->chip_size = 0x2000; /* Fixed for ds1225y chip: 8 KiB */ s->contents = qemu_mallocz(s->chip_size); - if (!s->contents) { - return NULL; - } s->protection = 7; /* Read current file */ |