diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-16 06:34:26 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-06-09 09:48:53 +0200 |
commit | cdc06129a6cea0e4863fa2b34a0c132c6eb7278b (patch) | |
tree | 61011acf8b346899c7400c7287dd91f3f0059dc3 /fs/exfat | |
parent | exfat: Remove unused functions exfat_high_surrogate() and exfat_low_surrogate() (diff) | |
download | linux-cdc06129a6cea0e4863fa2b34a0c132c6eb7278b.tar.xz linux-cdc06129a6cea0e4863fa2b34a0c132c6eb7278b.zip |
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 <yanaijie@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat')
-rw-r--r-- | fs/exfat/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c index f9aa1e5dc238..c1f47f4071a8 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) |