linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fuse: fuse_lookup_name() cleanup
@ 2021-07-06  2:46 Jeffle Xu
  0 siblings, 0 replies; only message in thread
From: Jeffle Xu @ 2021-07-06  2:46 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel

Remove unused logic since it has been checked previously.

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
---
 fs/fuse/dir.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 1b6c001a7dd1..fa4d010f877a 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -431,8 +431,6 @@ int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name
 		goto out_put_forget;
 
 	err = -EIO;
-	if (!outarg->nodeid)
-		goto out_put_forget;
 	if (fuse_invalid_attr(&outarg->attr))
 		goto out_put_forget;
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-06  2:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06  2:46 [PATCH] fuse: fuse_lookup_name() cleanup Jeffle Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).