Commit 580f57c2 authored by Tetsuhiro Kohada's avatar Tetsuhiro Kohada Committed by Greg Kroah-Hartman

staging: exfat: remove redundant if statements

If statement does not affect results when updating directory entry in
ffsMapCluster().
Signed-off-by: default avatarTetsuhiro Kohada <Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp>
Link: https://lore.kernel.org/r/20200302095716.64155-2-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jpSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eca76cc
...@@ -1361,11 +1361,8 @@ static int ffsMapCluster(struct inode *inode, s32 clu_offset, u32 *clu) ...@@ -1361,11 +1361,8 @@ static int ffsMapCluster(struct inode *inode, s32 clu_offset, u32 *clu)
/* (3) update directory entry */ /* (3) update directory entry */
if (modified) { if (modified) {
if (exfat_get_entry_flag(ep) != fid->flags) exfat_set_entry_flag(ep, fid->flags);
exfat_set_entry_flag(ep, fid->flags); exfat_set_entry_clu0(ep, fid->start_clu);
if (exfat_get_entry_clu0(ep) != fid->start_clu)
exfat_set_entry_clu0(ep, fid->start_clu);
} }
update_dir_checksum_with_entry_set(sb, es); update_dir_checksum_with_entry_set(sb, es);
......
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