From: Al Viro Date: Sat, 11 Nov 2023 06:51:48 +0000 (-0500) Subject: affs: d_obtain_alias(ERR_PTR(...)) will do the right thing X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=155d46beea3dd1c26564856cbabf7f654ad094e6;p=users%2Fjedix%2Flinux-maple.git affs: d_obtain_alias(ERR_PTR(...)) will do the right thing Signed-off-by: Al Viro --- diff --git a/fs/affs/namei.c b/fs/affs/namei.c index d6b9758ee23dc..8c154490a2d6d 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); }