summaryrefslogtreecommitdiff
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
authorzyfjeff <zyfjeff@linux.alibaba.com>2022-12-13 14:51:47 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2023-06-07 17:26:34 +0300
commit1c3610d30e5c15f4db7eb8465e311b582aa50ebe (patch)
treee3176f15bf26bd12449881b2e2f71a54e277d1bc /fs/fuse/dir.c
parent5cadfbd5a11e5495cac217534c5f788168b1afd7 (diff)
downloadlinux-1c3610d30e5c15f4db7eb8465e311b582aa50ebe.tar.xz
fuse: remove duplicate check for nodeid
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>
Diffstat (limited to 'fs/fuse/dir.c')
-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 35bc174f9ba2..5a4a7155cf1c 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;