From: Al Viro Date: Sat, 11 Nov 2023 06:52:25 +0000 (-0500) Subject: befs: d_obtain_alias(ERR_PTR(...)) will do the right thing X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f6c8bfcf951feeab716bd051e4c1d767fe82df0f;p=linux.git befs: d_obtain_alias(ERR_PTR(...)) will do the right thing Signed-off-by: Al Viro --- diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index a93d76df8ed8b..2b4dda047450f 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -671,9 +671,6 @@ static struct dentry *befs_get_parent(struct dentry *child) parent = befs_iget(child->d_sb, (unsigned long)befs_ino->i_parent.start); - if (IS_ERR(parent)) - return ERR_CAST(parent); - return d_obtain_alias(parent); }