summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-04-15 10:59:42 +0200
committerKevin Wolf <kwolf@redhat.com>2013-08-30 15:28:52 +0200
commit09da4a72926e2d0af0e5f0cb967ab0dd345311f4 (patch)
tree4638f2f6931409d8a8aeb7b9ad754fca10c32c0e /block.c
parent9117b47717ad208b12786ce88eacb013f9b3dd1c (diff)
downloadqemu-09da4a72926e2d0af0e5f0cb967ab0dd345311f4.tar.gz
qemu-09da4a72926e2d0af0e5f0cb967ab0dd345311f4.tar.bz2
qemu-09da4a72926e2d0af0e5f0cb967ab0dd345311f4.zip
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>
Diffstat (limited to 'block.c')
-rw-r--r--block.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block.c b/block.c
index a387c1ad68..26639e8b70 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);
}