diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:05:53 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:05:53 +0000 |
commit | 3ec88e80365c889f824d9a171fbf197b46a7c03f (patch) | |
tree | f0746a9234070ab3b86fd953827300eb21a0f7bb /block-bochs.c | |
parent | 8a1d02aba9f986ca03d854184cd432ee98bcd179 (diff) |
block: 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@6527 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-bochs.c')
-rw-r--r-- | block-bochs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block-bochs.c b/block-bochs.c index b167e0bbfd..593cf697c1 100644 --- a/block-bochs.c +++ b/block-bochs.c @@ -149,8 +149,6 @@ static int bochs_open(BlockDriverState *bs, const char *filename, int flags) s->catalog_size = le32_to_cpu(bochs.extra.redolog.catalog); s->catalog_bitmap = qemu_malloc(s->catalog_size * 4); - if (!s->catalog_bitmap) - goto fail; if (read(s->fd, s->catalog_bitmap, s->catalog_size * 4) != s->catalog_size * 4) goto fail; |