mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
Remove dead code in dget_parent()
->d_parent is never NULL... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e4b9f00581
commit
86c98e8cdb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user