public inbox for v9fs@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] fs/9p: delete unnnecessary condition
@ 2025-10-24 11:26 Dan Carpenter
  2025-10-24 11:59 ` Christian Schoenebeck
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2025-10-24 11:26 UTC (permalink / raw)
  To: Dominique Martinet, Eric Van Hensbergen
  Cc: Latchesar Ionkov, Christian Schoenebeck, v9fs, linux-kernel,
	kernel-janitors

We already know that "retval" is negative, so there is no need to check
again.  Also the statement is not indented far enough.  Delete it.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 fs/9p/vfs_dentry.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c
index c1acbc98465d..c5bf74d547e8 100644
--- a/fs/9p/vfs_dentry.c
+++ b/fs/9p/vfs_dentry.c
@@ -109,7 +109,6 @@ static int __v9fs_lookup_revalidate(struct dentry *dentry, unsigned int flags)
 			p9_debug(P9_DEBUG_VFS,
 				"refresh inode: dentry = %pd (%p), got error %pe\n",
 				dentry, dentry, ERR_PTR(retval));
-		if (retval < 0)
 			return retval;
 		}
 	}
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-25 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24 11:26 [PATCH] fs/9p: delete unnnecessary condition Dan Carpenter
2025-10-24 11:59 ` Christian Schoenebeck
2025-10-24 13:34   ` Dominique Martinet
2025-10-25 15:39     ` Tingmao Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox