[PATCH] ext2: remove d_splice_alias NULL check from ext2_lookup

Remove redundant NULL check in ext2_lookup() as d_splice_alias() can take NULL
inode as input.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Pekka Enberg and committed by Linus Torvalds 082a05c6 505970b9

+1 -4
+1 -4
fs/ext2/namei.c
··· 83 83 if (!inode) 84 84 return ERR_PTR(-EACCES); 85 85 } 86 - if (inode) 87 - return d_splice_alias(inode, dentry); 88 - d_add(dentry, inode); 89 - return NULL; 86 + return d_splice_alias(inode, dentry); 90 87 } 91 88 92 89 struct dentry *ext2_get_parent(struct dentry *child)