Message ID | 20231220051907.GD1674809@ZenIV (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | PATCH 01/22] hostfs: use d_splice_alias() calling conventions to simplify failure exits | expand |
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); }
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> --- fs/affs/namei.c | 3 --- 1 file changed, 3 deletions(-)