make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err)
[linux-2.6.git] / fs / squashfs / namei.c
index 51b3695..0682b38 100644 (file)
@@ -220,11 +220,6 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
                                        blk, off, ino_num);
 
                                inode = squashfs_iget(dir->i_sb, ino, ino_num);
-                               if (IS_ERR(inode)) {
-                                       err = PTR_ERR(inode);
-                                       goto failed;
-                               }
-
                                goto exit_lookup;
                        }
                }