From: Al Viro Date: Sat, 11 Nov 2023 06:14:38 +0000 (-0500) Subject: udf: d_splice_alias() will do the right thing on ERR_PTR() inode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=32328a73e0ad4a1babebf798c309c64ee3b97400;p=linux.git udf: d_splice_alias() will do the right thing on ERR_PTR() inode Acked-by: Jan Kara Signed-off-by: Al Viro --- diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 3508ac484da39..92f25e5404307 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -125,8 +125,6 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry, udf_fiiter_release(&iter); inode = udf_iget(dir->i_sb, &loc); - if (IS_ERR(inode)) - return ERR_CAST(inode); } return d_splice_alias(inode, dentry);