From: Kevin Wolf Date: Mon, 15 Apr 2013 08:59:42 +0000 (+0200) Subject: block: Remove redundant assertion X-Git-Tag: v1.7.0-rc0~136^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09da4a72926e2d0af0e5f0cb967ab0dd345311f4;p=thirdparty%2Fqemu.git block: Remove redundant assertion The failing condition is checked immediately before the assertion, so keeping the assertion is kind of redundant. Signed-off-by: Kevin Wolf --- diff --git a/block.c b/block.c index a387c1ad684..26639e8b702 100644 --- a/block.c +++ b/block.c @@ -743,7 +743,6 @@ static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file, ret = -EINVAL; goto free_and_fail; } - assert(file != NULL); bs->file = file; ret = drv->bdrv_open(bs, options, open_flags); }