diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2006-01-14 13:21:08 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-14 18:27:10 -0800 |
commit | ba7fe369875075c3b0def9887afb7a44fa88175e (patch) | |
tree | 2b1052b698a66b67e981fbdea526c4b09df65ede /fs/ext3/namei.c | |
parent | 082a05c6f02e00982dd42ddae434fbc806a822e5 (diff) | |
download | linux-ba7fe369875075c3b0def9887afb7a44fa88175e.tar.gz linux-ba7fe369875075c3b0def9887afb7a44fa88175e.tar.bz2 linux-ba7fe369875075c3b0def9887afb7a44fa88175e.zip |
[PATCH] ext3: remove d_splice_alias NULL check from ext3_lookup
Remove redundant NULL check in ext3_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>
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r-- | fs/ext3/namei.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index af193a304ee5..8bd8ac077704 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c @@ -1005,10 +1005,7 @@ static struct dentry *ext3_lookup(struct inode * dir, struct dentry *dentry, str 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); } |