From: zyfjeff Date: Tue, 13 Dec 2022 11:51:47 +0000 (+0800) Subject: fuse: remove duplicate check for nodeid X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1c3610d30e5c15f4db7eb8465e311b582aa50ebe;p=linux.git 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 Signed-off-by: Miklos Szeredi --- 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;