[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241116063613.15120-1-advaitdhamorikar@gmail.com>
Date: Sat, 16 Nov 2024 12:06:13 +0530
From: Advait Dhamorikar <advaitdhamorikar@...il.com>
To: David Howells <dhowells@...hat.com>,
Marc Dionne <marc.dionne@...istor.com>
Cc: linux-afs@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Advait Dhamorikar <advaitdhamorikar@...il.com>
Subject: [PATCH-next] afs: Remove logically dead code
Initially ret is initialized to 0 and its value is then never updated
again, thus the indicated dead code may have performed some action;
that action will never occur.
Signed-off-by: Advait Dhamorikar <advaitdhamorikar@...il.com>
---
fs/afs/dir.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index b6a202fd9926..afa7c24828ec 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -502,8 +502,6 @@ static int afs_dir_iterate_contents(struct inode *dir, struct dir_context *ctx)
iterate_folioq(&iter, iov_iter_count(&iter), dvnode, ctx,
afs_dir_iterate_step);
- if (ret == -ESTALE)
- afs_invalidate_dir(dvnode, afs_dir_invalid_iter_stale);
return ret;
}
--
2.34.1
Powered by blists - more mailing lists