From: Pekka Enberg Remove redundant NULL check in ext3_lookup() as d_splice_alias() can take NULL inode as input. Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton --- fs/ext3/namei.c | 5 +---- 1 files changed, 1 insertion(+), 4 deletions(-) diff -puN fs/ext3/namei.c~ext3-remove-d_splice_alias-null-check-from-ext3_lookup fs/ext3/namei.c --- 25/fs/ext3/namei.c~ext3-remove-d_splice_alias-null-check-from-ext3_lookup Thu Jan 12 17:08:39 2006 +++ 25-akpm/fs/ext3/namei.c Thu Jan 12 17:08:39 2006 @@ -1005,10 +1005,7 @@ static struct dentry *ext3_lookup(struct if (!inode) return ERR_PTR(-EACCES); } - if (inode) - return d_splice_alias(inode, dentry); - d_add(dentry, inode); - return NULL; + return d_splice_alias(inode, dentry); } _