mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
tracefs: ->d_parent is never NULL or negative...
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
4093d306a9
commit
0ba3353c22
1 changed files with 0 additions and 7 deletions
|
|
@ -541,9 +541,6 @@ void tracefs_remove(struct dentry *dentry)
|
|||
return;
|
||||
|
||||
parent = dentry->d_parent;
|
||||
if (!parent || !parent->d_inode)
|
||||
return;
|
||||
|
||||
inode_lock(parent->d_inode);
|
||||
ret = __tracefs_remove(dentry, parent);
|
||||
inode_unlock(parent->d_inode);
|
||||
|
|
@ -566,10 +563,6 @@ void tracefs_remove_recursive(struct dentry *dentry)
|
|||
if (IS_ERR_OR_NULL(dentry))
|
||||
return;
|
||||
|
||||
parent = dentry->d_parent;
|
||||
if (!parent || !parent->d_inode)
|
||||
return;
|
||||
|
||||
parent = dentry;
|
||||
down:
|
||||
inode_lock(parent->d_inode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue