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) |
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 d1d6b3349ec7..3c34ac0e9a1b 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -549,10 +549,6 @@ repeat: | |||
549 | */ | 549 | */ |
550 | rcu_read_lock(); | 550 | rcu_read_lock(); |
551 | ret = dentry->d_parent; | 551 | ret = dentry->d_parent; |
552 | if (!ret) { | ||
553 | rcu_read_unlock(); | ||
554 | goto out; | ||
555 | } | ||
556 | spin_lock(&ret->d_lock); | 552 | spin_lock(&ret->d_lock); |
557 | if (unlikely(ret != dentry->d_parent)) { | 553 | if (unlikely(ret != dentry->d_parent)) { |
558 | spin_unlock(&ret->d_lock); | 554 | spin_unlock(&ret->d_lock); |
@@ -563,7 +559,6 @@ repeat: | |||
563 | BUG_ON(!ret->d_count); | 559 | BUG_ON(!ret->d_count); |
564 | ret->d_count++; | 560 | ret->d_count++; |
565 | spin_unlock(&ret->d_lock); | 561 | spin_unlock(&ret->d_lock); |
566 | out: | ||
567 | return ret; | 562 | return ret; |
568 | } | 563 | } |
569 | EXPORT_SYMBOL(dget_parent); | 564 | EXPORT_SYMBOL(dget_parent); |