From f6c8bfcf951feeab716bd051e4c1d767fe82df0f Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 11 Nov 2023 01:52:25 -0500 Subject: befs: d_obtain_alias(ERR_PTR(...)) will do the right thing Signed-off-by: Al Viro --- fs/befs/linuxvfs.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'fs/befs') diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index a93d76df8ed8..2b4dda047450 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); } -- cgit