aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
authorGravatar Heinz Mauelshagen <heinzm@redhat.com> 2023-02-07 22:07:22 +0100
committerGravatar Mike Snitzer <snitzer@kernel.org> 2023-02-14 14:23:07 -0500
commit6cc435fa76cc1786ef460c08c31b1d27c13e9cff (patch)
treee6eef4e16e342101dc1d6437abf889f4dd25a1bc /drivers/md/dm-mpath.c
parentdm log: avoid multiple line dereference (diff)
downloadlinux-6cc435fa76cc1786ef460c08c31b1d27c13e9cff.tar.gz
linux-6cc435fa76cc1786ef460c08c31b1d27c13e9cff.tar.bz2
linux-6cc435fa76cc1786ef460c08c31b1d27c13e9cff.zip
dm: avoid 'do {} while(0)' loop in single statement macros
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 0ea168b63db2..371a38bc0c61 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -472,13 +472,11 @@ failed:
* it has been invoked.
*/
#define dm_report_EIO(m) \
-do { \
DMDEBUG_LIMIT("%s: returning EIO; QIFNP = %d; SQIFNP = %d; DNFS = %d", \
dm_table_device_name((m)->ti->table), \
test_bit(MPATHF_QUEUE_IF_NO_PATH, &(m)->flags), \
test_bit(MPATHF_SAVED_QUEUE_IF_NO_PATH, &(m)->flags), \
- dm_noflush_suspending((m)->ti)); \
-} while (0)
+ dm_noflush_suspending((m)->ti))
/*
* Check whether bios must be queued in the device-mapper core rather