summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFam Zheng2015-05-13 15:15:28 +0200
committerMichael Tokarev2015-06-03 13:21:23 +0200
commit44f192f364b71683379e104157b15b0685d24394 (patch)
treebcb3a6da86d3e0645f3a19d64fd553310684ed8a /block
parentMerge remote-tracking branch 'remotes/sstabellini/tags/xen-15-06-02-tag' into... (diff)
downloadqemu-44f192f364b71683379e104157b15b0685d24394.tar.gz
qemu-44f192f364b71683379e104157b15b0685d24394.tar.xz
qemu-44f192f364b71683379e104157b15b0685d24394.zip
iscsi: Remove pointless runtime check of macro value
raw_bsd already has QEMU_BUILD_BUG_ON(BDRV_SECTOR_SIZE != 512), so iscsi should relax. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block')
-rw-r--r--block/iscsi.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/block/iscsi.c b/block/iscsi.c
index 8fca1d32cb..14e97a6b48 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -1323,13 +1323,6 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
const char *filename;
int i, ret = 0;
- if ((BDRV_SECTOR_SIZE % 512) != 0) {
- error_setg(errp, "iSCSI: Invalid BDRV_SECTOR_SIZE. "
- "BDRV_SECTOR_SIZE(%lld) is not a multiple "
- "of 512", BDRV_SECTOR_SIZE);
- return -EINVAL;
- }
-
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
qemu_opts_absorb_qdict(opts, options, &local_err);
if (local_err) {