Skip to content

Commit

Permalink
block: Remove redundant assertion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kevmw committed Aug 30, 2013
1 parent 9117b47 commit 09da4a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 09da4a7

Please sign in to comment.