diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-11 09:52:25 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-21 20:51:02 +0300 |
commit | f6c8bfcf951feeab716bd051e4c1d767fe82df0f (patch) | |
tree | 61b16e3aa63def62eed0c135dc67bc543070fa9e | |
parent | 155d46beea3dd1c26564856cbabf7f654ad094e6 (diff) | |
download | linux-f6c8bfcf951feeab716bd051e4c1d767fe82df0f.tar.xz |
befs: d_obtain_alias(ERR_PTR(...)) will do the right thing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/befs/linuxvfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); } |