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

Commit 0ba3353c authored by Al Viro's avatar Al Viro
Browse files

tracefs: ->d_parent is never NULL or negative...



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