mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-04 09:50:14 -05:00
nilfs2: remove loops of single statement macros
This fixes checkpatch.pl warning "WARNING: Single statement macros
should not use a do {} while (0) loop".
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryusuke Konishi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7f00184e9c
commit
80d6505232
1 changed files with 4 additions and 5 deletions
|
|
@ -222,15 +222,14 @@ THE_NILFS_FNS(SB_DIRTY, sb_dirty)
|
|||
* Mount option operations
|
||||
*/
|
||||
#define nilfs_clear_opt(nilfs, opt) \
|
||||
do { (nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt; } while (0)
|
||||
((nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt)
|
||||
#define nilfs_set_opt(nilfs, opt) \
|
||||
do { (nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt; } while (0)
|
||||
((nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt)
|
||||
#define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt)
|
||||
#define nilfs_write_opt(nilfs, mask, opt) \
|
||||
do { (nilfs)->ns_mount_opt = \
|
||||
((nilfs)->ns_mount_opt = \
|
||||
(((nilfs)->ns_mount_opt & ~NILFS_MOUNT_##mask) | \
|
||||
NILFS_MOUNT_##opt); \
|
||||
} while (0)
|
||||
NILFS_MOUNT_##opt)) \
|
||||
|
||||
/**
|
||||
* struct nilfs_root - nilfs root object
|
||||
|
|
|
|||
Loading…
Reference in a new issue