Skip to content

Commit

Permalink
debugfs: ->d_parent is never NULL or negative
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 29, 2016
1 parent bf13091 commit acc29fb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit acc29fb

Please sign in to comment.