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 <kwolf@redhat.com>
parent 9117b477
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
    }