From: Al Viro Date: Sun, 29 May 2016 19:20:30 +0000 (-0400) Subject: debugfs: ->d_parent is never NULL or negative X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=acc29fb8f7921ac85828021cf884579957446d3b;p=linux-beck.git debugfs: ->d_parent is never NULL or negative Signed-off-by: Al Viro --- 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) 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));