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-parallels.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-parallels.c')
-rw-r--r-- | block-parallels.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block-parallels.c b/block-parallels.c index 4654b07b15..8a8ec63da6 100644 --- a/block-parallels.c +++ b/block-parallels.c @@ -101,8 +101,6 @@ static int parallels_open(BlockDriverState *bs, const char *filename, int flags) s->catalog_size = le32_to_cpu(ph.catalog_entries); 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; |