projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.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
|
blame
|
history
diff --git
a/fs/ext3/namei.c
b/fs/ext3/namei.c
index af193a304ee5868c6bd54db9f8018159940463bb..8bd8ac0777046e39c466fae28cec573140e72c29 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);
}