Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acc29fb8 authored by Al Viro's avatar Al Viro
Browse files

debugfs: ->d_parent is never NULL or negative



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent bf130914
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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));