From db8bd78e867c8085d6f4785cbaa4c6bd2b75a970 Mon Sep 17 00:00:00 2001 From: Jason Yan Date: Thu, 16 Apr 2020 09:51:09 +0900 Subject: [PATCH] exfat: remove the assignment of 0 to bool variable There is no need to init 'sync' in exfat_set_vol_flags(). This also fixes the following coccicheck warning: fs/exfat/super.c:104:6-10: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan Signed-off-by: Namjae Jeon --- super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super.c b/super.c index 128d2da33de3..71ae2bb339a4 100644 --- a/super.c +++ b/super.c @@ -115,7 +115,7 @@ int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flag) { struct exfat_sb_info *sbi = EXFAT_SB(sb); struct pbr64 *bpb = (struct pbr64 *)sbi->pbr_bh->b_data; - bool sync = 0; + bool sync; /* flags are not changed */ if (sbi->vol_flag == new_flag)