From 3ec88e80365c889f824d9a171fbf197b46a7c03f Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 5 Feb 2009 22:05:53 +0000 Subject: block: remove error handling from qemu_malloc() callers (Avi Kivity) Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6527 c046a42c-6fe2-441c-8c8c-71466251a162 --- block-bochs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'block-bochs.c') 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; -- cgit v1.1