[PATCH] reiserfs: remove d_splice_alias NULL check from reiserfs_lookup
[powerpc.git] / fs / reiserfs / namei.c
index 3549067..8f8d8d0 100644 (file)
@@ -375,11 +375,7 @@ static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry,
                return ERR_PTR(-EIO);
        }
 
-       if (inode)
-               return d_splice_alias(inode, dentry);
-
-       d_add(dentry, inode);
-       return NULL;
+       return d_splice_alias(inode, dentry);
 }
 
 /*