diff options
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 b167e0b..593cf69 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; |