staging: exfat: remove redundant if statements
If statement does not affect results when updating directory entry in ffsMapCluster(). Signed-off-by: Tetsuhiro Kohada <Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp> Link: https://lore.kernel.org/r/20200302095716.64155-2-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3eca76cc2d
commit
580f57c2cf
@ -1361,11 +1361,8 @@ static int ffsMapCluster(struct inode *inode, s32 clu_offset, u32 *clu)
|
||||
|
||||
/* (3) update directory entry */
|
||||
if (modified) {
|
||||
if (exfat_get_entry_flag(ep) != fid->flags)
|
||||
exfat_set_entry_flag(ep, fid->flags);
|
||||
|
||||
if (exfat_get_entry_clu0(ep) != fid->start_clu)
|
||||
exfat_set_entry_clu0(ep, fid->start_clu);
|
||||
exfat_set_entry_flag(ep, fid->flags);
|
||||
exfat_set_entry_clu0(ep, fid->start_clu);
|
||||
}
|
||||
|
||||
update_dir_checksum_with_entry_set(sb, es);
|
||||
|
Loading…
Reference in New Issue
Block a user