diff options
| author | Heinz Mauelshagen <[email protected]> | 2023-02-01 20:51:04 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2023-02-14 19:23:06 +0000 |
| commit | 44bc08ed63db7a852bd1ba16611b700ee666091c (patch) | |
| tree | 842dc421decce78fcca824722fe7c71422a3ed4e /drivers/md/dm-log.c | |
| parent | dm: avoid assignment in if conditions (diff) | |
| download | kernel-44bc08ed63db7a852bd1ba16611b700ee666091c.tar.gz kernel-44bc08ed63db7a852bd1ba16611b700ee666091c.zip | |
dm: enclose complex macros into parentheses where possible
Signed-off-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/md/dm-log.c')
| -rw-r--r-- | drivers/md/dm-log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index b57790e62484..7c3f30c58785 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c @@ -773,8 +773,10 @@ static region_t core_get_sync_count(struct dm_dirty_log *log) } #define DMEMIT_SYNC \ - if (lc->sync != DEFAULTSYNC) \ - DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "") + do { \ + if (lc->sync != DEFAULTSYNC) \ + DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : ""); \ + } while (0); static int core_status(struct dm_dirty_log *log, status_type_t status, char *result, unsigned int maxlen) |
