diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-29 15:20:30 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-29 16:22:08 -0400 |
commit | acc29fb8f7921ac85828021cf884579957446d3b (patch) | |
tree | f5775606d3320f00f89d0f10b7ec2403f91170ff | |
parent | bf1309142088e92952a8a6e97288a6c26243154d (diff) |
debugfs: ->d_parent is never NULL or negative
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/debugfs/inode.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 4bc1f68243c1..72361baf9da7 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -621,9 +621,6 @@ void debugfs_remove(struct dentry *dentry) | |||
621 | return; | 621 | return; |
622 | 622 | ||
623 | parent = dentry->d_parent; | 623 | parent = dentry->d_parent; |
624 | if (!parent || d_really_is_negative(parent)) | ||
625 | return; | ||
626 | |||
627 | inode_lock(d_inode(parent)); | 624 | inode_lock(d_inode(parent)); |
628 | ret = __debugfs_remove(dentry, parent); | 625 | ret = __debugfs_remove(dentry, parent); |
629 | inode_unlock(d_inode(parent)); | 626 | inode_unlock(d_inode(parent)); |
@@ -654,10 +651,6 @@ void debugfs_remove_recursive(struct dentry *dentry) | |||
654 | if (IS_ERR_OR_NULL(dentry)) | 651 | if (IS_ERR_OR_NULL(dentry)) |
655 | return; | 652 | return; |
656 | 653 | ||
657 | parent = dentry->d_parent; | ||
658 | if (!parent || d_really_is_negative(parent)) | ||
659 | return; | ||
660 | |||
661 | parent = dentry; | 654 | parent = dentry; |
662 | down: | 655 | down: |
663 | inode_lock(d_inode(parent)); | 656 | inode_lock(d_inode(parent)); |