aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzyfjeff <zyfjeff@linux.alibaba.com>2022-12-13 19:51:47 +0800
committerMiklos Szeredi <mszeredi@redhat.com>2023-03-27 16:14:49 +0200
commitc68ea140050e631d24d61b6e399ca8224a4a2219 (patch)
tree8132dbc0464fda6044f297ad8e0203b0ec5a907e
parent709ad2a5d467afe80d85f1955dc87b937330625c (diff)
downloadfuse-for-next.tar.gz
fuse: remove duplicate check for nodeidfor-next
before this check, the nodeid has already been checked once, so the check here doesn't make an sense, so remove the check for nodeid here. if (err || !outarg->nodeid) goto out_put_forget; err = -EIO; >>> if (!outarg->nodeid) goto out_put_forget; Signed-off-by: zyfjeff <zyfjeff@linux.alibaba.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r--fs/fuse/dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 35bc174f9ba21..5a4a7155cf1cd 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -395,8 +395,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;