Skip to content

Commit 155d46b

Browse files
author
Al Viro
committed
affs: d_obtain_alias(ERR_PTR(...)) will do the right thing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 1eae9a4 commit 155d46b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/affs/namei.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,6 @@ static struct dentry *affs_get_parent(struct dentry *child)
532532
parent = affs_iget(child->d_sb,
533533
be32_to_cpu(AFFS_TAIL(child->d_sb, bh)->parent));
534534
brelse(bh);
535-
if (IS_ERR(parent))
536-
return ERR_CAST(parent);
537-
538535
return d_obtain_alias(parent);
539536
}
540537

0 commit comments

Comments
 (0)