All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] iscsi: Remove pointless runtime check of macro value
@ 2015-05-13 13:15 ` Fam Zheng
  0 siblings, 0 replies; 8+ messages in thread
From: Fam Zheng @ 2015-05-13 13:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

raw_bsd already has QEMU_BUILD_BUG_ON(BDRV_SECTOR_SIZE != 512), so iscsi
should relax.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/iscsi.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/block/iscsi.c b/block/iscsi.c
index 8fca1d3..14e97a6 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) {
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-28 11:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 13:15 [Qemu-trivial] [PATCH] iscsi: Remove pointless runtime check of macro value Fam Zheng
2015-05-13 13:15 ` [Qemu-devel] " Fam Zheng
2015-05-13  8:43 ` [Qemu-trivial] " Paolo Bonzini
2015-05-13  8:43   ` [Qemu-devel] " Paolo Bonzini
2015-05-13  8:52   ` [Qemu-trivial] " Fam Zheng
2015-05-13  8:52     ` Fam Zheng
2015-05-28 11:17 ` [Qemu-trivial] " Michael Tokarev
2015-05-28 11:17   ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.