befs: d_obtain_alias(ERR_PTR(...)) will do the right thing
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 Nov 2023 06:52:25 +0000 (01:52 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Dec 2023 17:51:02 +0000 (12:51 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/befs/linuxvfs.c

index a93d76df8ed8bb1502e6bcd261c1ef9cee60cb36..2b4dda047450f6d0ebfec058fa30e46a693ab025 100644 (file)
@@ -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);
 }