aboutsummaryrefslogtreecommitdiff
path: root/block-parallels.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-parallels.c')
-rw-r--r--block-parallels.c2
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;