From: Al Viro Date: Sat, 11 Nov 2023 06:13:58 +0000 (-0500) Subject: zonefs: d_splice_alias() will do the right thing on ERR_PTR() inode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=00488aa21150053a568343df2aca10a33559d7d8;p=linux.git zonefs: d_splice_alias() will do the right thing on ERR_PTR() inode Acked-by: Damien Le Moal Signed-off-by: Al Viro --- diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index e6a75401677de..93971742613a3 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -747,8 +747,6 @@ static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry, inode = zonefs_get_dir_inode(dir, dentry); else inode = zonefs_get_file_inode(dir, dentry); - if (IS_ERR(inode)) - return ERR_CAST(inode); return d_splice_alias(inode, dentry); }