OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
082a05c
)
[PATCH] ext3: remove d_splice_alias NULL check from ext3_lookup
author
Pekka Enberg
<penberg@cs.helsinki.fi>
Sat, 14 Jan 2006 21:21:08 +0000
(13:21 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 15 Jan 2006 02:27:10 +0000
(18:27 -0800)
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>
fs/ext3/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext3/namei.c
b/fs/ext3/namei.c
index
af193a3
..
8bd8ac0
100644
(file)
--- 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);
}