Skip to content

Commit 1c3610d

Browse files
zyfjeffMiklos Szeredi
authored andcommitted
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 <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 5cadfbd commit 1c3610d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/fuse/dir.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name
395395
goto out_put_forget;
396396

397397
err = -EIO;
398-
if (!outarg->nodeid)
399-
goto out_put_forget;
400398
if (fuse_invalid_attr(&outarg->attr))
401399
goto out_put_forget;
402400

0 commit comments

Comments
 (0)