projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9117b47
)
block: Remove redundant assertion
author
Kevin Wolf
<kwolf@redhat.com>
Mon, 15 Apr 2013 08:59:42 +0000
(10:59 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 30 Aug 2013 13:28:52 +0000
(15:28 +0200)
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>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index
a387c1a
..
26639e8
100644
(file)
--- 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);
}