mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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 <linkinjeon@kernel.org>
This commit is contained in:
parent
d2424acd1d
commit
db8bd78e86
1 changed files with 1 additions and 1 deletions
2
super.c
2
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue