summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-18 23:39:07 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 20:48:04 -0400
commit86c98e8cdb21ff4628f4d48559ab6e006380fa4b (patch)
treefb4038d37fc073c7b858c0a15f20cc7c627ac9a7 /fs/dcache.c
parente4b9f0058145a3bed4199eacee62a9969c163401 (diff)
downloadop-kernel-dev-86c98e8cdb21ff4628f4d48559ab6e006380fa4b.zip
op-kernel-dev-86c98e8cdb21ff4628f4d48559ab6e006380fa4b.tar.gz
Remove dead code in dget_parent()
->d_parent is never NULL... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index d1d6b33..3c34ac0 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -549,10 +549,6 @@ repeat:
*/
rcu_read_lock();
ret = dentry->d_parent;
- if (!ret) {
- rcu_read_unlock();
- goto out;
- }
spin_lock(&ret->d_lock);
if (unlikely(ret != dentry->d_parent)) {
spin_unlock(&ret->d_lock);
@@ -563,7 +559,6 @@ repeat:
BUG_ON(!ret->d_count);
ret->d_count++;
spin_unlock(&ret->d_lock);
-out:
return ret;
}
EXPORT_SYMBOL(dget_parent);
OpenPOWER on IntegriCloud