Skip to content

Commit f6c8bfc

Browse files
author
Al Viro
committed
befs: d_obtain_alias(ERR_PTR(...)) will do the right thing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 155d46b commit f6c8bfc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/befs/linuxvfs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,6 @@ static struct dentry *befs_get_parent(struct dentry *child)
671671

672672
parent = befs_iget(child->d_sb,
673673
(unsigned long)befs_ino->i_parent.start);
674-
if (IS_ERR(parent))
675-
return ERR_CAST(parent);
676-
677674
return d_obtain_alias(parent);
678675
}
679676

0 commit comments

Comments
 (0)