summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-09-22 19:25:25 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-10-24 00:09:54 +0200
commit3aca47127a646165965ff52803e2b269eed91afc (patch)
treea41b2158f28659277a8d70c1e6a9aebe1bd96da3 /fs/inode.c
parentLinux 6.1-rc1 (diff)
downloadlinux-3aca47127a646165965ff52803e2b269eed91afc.tar.xz
linux-3aca47127a646165965ff52803e2b269eed91afc.zip
fs: drop useless condition from inode_needs_update_time
Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/inode.c b/fs/inode.c
index b608528efd3a..762feb8d0c6c 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -2071,9 +2071,6 @@ static int inode_needs_update_time(struct inode *inode, struct timespec64 *now)
if (IS_I_VERSION(inode) && inode_iversion_need_inc(inode))
sync_it |= S_VERSION;
- if (!sync_it)
- return 0;
-
return sync_it;
}