Skip to content

Commit cdc0612

Browse files
JasonYanHwnamjaejeon
authored andcommitted
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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 6778337 commit cdc0612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/exfat/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flag)
102102
{
103103
struct exfat_sb_info *sbi = EXFAT_SB(sb);
104104
struct pbr64 *bpb = (struct pbr64 *)sbi->pbr_bh->b_data;
105-
bool sync = 0;
105+
bool sync;
106106

107107
/* flags are not changed */
108108
if (sbi->vol_flag == new_flag)

0 commit comments

Comments
 (0)