mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
debugfs: ->d_parent is never NULL or negative
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
bf13091420
commit
acc29fb8f7
1 changed files with 0 additions and 7 deletions
|
|
@ -621,9 +621,6 @@ void debugfs_remove(struct dentry *dentry)
|
|||
return;
|
||||
|
||||
parent = dentry->d_parent;
|
||||
if (!parent || d_really_is_negative(parent))
|
||||
return;
|
||||
|
||||
inode_lock(d_inode(parent));
|
||||
ret = __debugfs_remove(dentry, parent);
|
||||
inode_unlock(d_inode(parent));
|
||||
|
|
@ -654,10 +651,6 @@ void debugfs_remove_recursive(struct dentry *dentry)
|
|||
if (IS_ERR_OR_NULL(dentry))
|
||||
return;
|
||||
|
||||
parent = dentry->d_parent;
|
||||
if (!parent || d_really_is_negative(parent))
|
||||
return;
|
||||
|
||||
parent = dentry;
|
||||
down:
|
||||
inode_lock(d_inode(parent));
|
||||
|
|
|
|||
Loading…
Reference in a new issue