Commit 09da4a72 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

block: Remove redundant assertion

The failing condition is checked immediately before the assertion, so
keeping the assertion is kind of redundant.
Signed-off-by: default avatarKevin Wolf <>
parent 9117b477
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment