summaryrefslogtreecommitdiff
path: root/fs/affs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-11-11 01:51:48 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2023-12-21 12:51:02 -0500
commit155d46beea3dd1c26564856cbabf7f654ad094e6 (patch)
tree5389ca674a23ef86bc21c309f4f9b01fb645c075 /fs/affs
parent1eae9a47835ed4703055afbb3c52fef6d07a8a4c (diff)
affs: d_obtain_alias(ERR_PTR(...)) will do the right thing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs')
-rw-r--r--fs/affs/namei.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/affs/namei.c b/fs/affs/namei.c
index d6b9758ee23d..8c154490a2d6 100644
--- a/fs/affs/namei.c
+++ b/fs/affs/namei.c
@@ -532,9 +532,6 @@ static struct dentry *affs_get_parent(struct dentry *child)
parent = affs_iget(child->d_sb,
be32_to_cpu(AFFS_TAIL(child->d_sb, bh)->parent));
brelse(bh);
- if (IS_ERR(parent))
- return ERR_CAST(parent);
-
return d_obtain_alias(parent);
}