Skip to contentSkip to conversation

fs: drop useless condition from inode_needs_update_time

PATCH New Jeff Layton 1 participant 1 message Sep 22, 2022 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: drop useless condition from inode_needs_update_time

---
 fs/inode.c | 3 ---
 1 file changed, 3 deletions(-)
fs/inode.c +0 -3
index ba1de23c13c1..6d23ca5dc788 100644
@@ -2072,9 +2072,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;
 }
 
Signature · 1 line
2.37.3