udf: d_splice_alias() will do the right thing on ERR_PTR() inode
[linux-2.6-microblaze.git] / fs / udf / namei.c
index 3508ac4..92f25e5 100644 (file)
@@ -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);