Commit cdc06129 authored by Jason Yan's avatar Jason Yan Committed by Namjae Jeon

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: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
parent 6778337a
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment