From: Jason Yan Date: Thu, 16 Apr 2020 04:34:26 +0000 (+0900) Subject: exfat: remove the assignment of 0 to bool variable X-Git-Tag: v5.8-rc1~78^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdc06129a6cea0e4863fa2b34a0c132c6eb7278b;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/exfat/super.c b/fs/exfat/super.c index f9aa1e5dc2381..c1f47f4071a80 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -102,7 +102,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)