From: Tetsuhiro Kohada Date: Mon, 2 Mar 2020 09:57:16 +0000 (+0900) Subject: staging: exfat: remove redundant if statements X-Git-Tag: v5.10.7~2990^2~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=580f57c2cf616fe09f0823bfcd1bfc26b2cb4fbe;p=platform%2Fkernel%2Flinux-rpi.git staging: exfat: remove redundant if statements If statement does not affect results when updating directory entry in ffsMapCluster(). Signed-off-by: Tetsuhiro Kohada Link: https://lore.kernel.org/r/20200302095716.64155-2-Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index 7083982..75813d0 100644 --- a/drivers/staging/exfat/exfat_super.c +++ b/drivers/staging/exfat/exfat_super.c @@ -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);