fuse: remove duplicate check for nodeid
Subsystems (2)
PATCH 1/1 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 node id here.
if (err || !outarg->nodeid) goto out_put_forget; err = -EIO;
Quoted 1 line
Quoted 1 line
Quoted 1 line
if (!outarg->nodeid)
goto out_put_forget;
Signed-off-by zyfjeff <[email protected]>
--- fs/fuse/dir.c | 2 -- 1 file changed, 2 deletions(-)
fs/fuse/dir.c +0 -2
@@ -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;
Signature · 1 line
2.34.1