mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 10:19:52 +00:00
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 <kwolf@redhat.com>
This commit is contained in:
parent
9117b47717
commit
09da4a7292
1
block.c
1
block.c
@ -743,7 +743,6 @@ static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file,
|
|||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto free_and_fail;
|
goto free_and_fail;
|
||||||
}
|
}
|
||||||
assert(file != NULL);
|
|
||||||
bs->file = file;
|
bs->file = file;
|
||||||
ret = drv->bdrv_open(bs, options, open_flags);
|
ret = drv->bdrv_open(bs, options, open_flags);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user