[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/26] block: Remove redundant assertion
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 02/26] block: Remove redundant assertion |
Date: |
Fri, 30 Aug 2013 16:30:27 +0200 |
The failing condition is checked immediately before the assertion, so
keeping the assertion is kind of redundant.
Signed-off-by: Kevin Wolf <address@hidden>
---
block.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/block.c b/block.c
index a387c1a..26639e8 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);
}
--
1.8.1.4
- [Qemu-devel] [PULL 00/26] Block patches, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 01/26] qcow2: Change default for new images to compat=1.1, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 03/26] qapi-types.py: Split off generate_struct_fields(), Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 06/26] block/qcow2.h: Avoid "1LL << 63" (shifts into sign bit), Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 04/26] Revert "block: Disable driver-specific options for 1.6", Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 02/26] block: Remove redundant assertion,
Kevin Wolf <=
- [Qemu-devel] [PULL 05/26] qemu-iotests: Update reference output for 051, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 07/26] add skeleton for BSD licensed "raw" BlockDriver, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 08/26] raw_bsd: emit debug events in bdrv_co_readv() and bdrv_co_writev(), Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 09/26] raw_bsd: add raw_create(), Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 10/26] raw_bsd: introduce "special members", Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 11/26] raw_bsd: add raw_create_options, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 12/26] raw_bsd: register bdrv_raw, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 13/26] switch raw block driver from "raw.o" to "raw_bsd.o", Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 14/26] block: Remove old raw driver, Kevin Wolf, 2013/08/30
- [Qemu-devel] [PULL 16/26] option: Add assigned flag to QEMUOptionParameter, Kevin Wolf, 2013/08/30