diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-18 23:39:07 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:48:04 -0400 |
commit | 86c98e8cdb21ff4628f4d48559ab6e006380fa4b (patch) | |
tree | fb4038d37fc073c7b858c0a15f20cc7c627ac9a7 /fs/dcache.c | |
parent | e4b9f0058145a3bed4199eacee62a9969c163401 (diff) | |
download | linux-3.10-86c98e8cdb21ff4628f4d48559ab6e006380fa4b.tar.gz linux-3.10-86c98e8cdb21ff4628f4d48559ab6e006380fa4b.tar.bz2 linux-3.10-86c98e8cdb21ff4628f4d48559ab6e006380fa4b.zip |
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.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index d1d6b3349ec..3c34ac0e9a1 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); |