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

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.jp


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3eca76cc
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1361,10 +1361,7 @@ 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);
		}