Remove dead code in dget_parent()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 19 Jul 2011 03:39:07 +0000 (23:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:48:04 +0000 (20:48 -0400)
->d_parent is never NULL...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c

index d1d6b3349ec7a045e027b0a6c141352862bd80b1..3c34ac0e9a1be2eabfb4f083bfa2515e184a1a56 100644 (file)
@@ -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);
This page took 0.04004 seconds and 5 git commands to generate.