From 0ba3353c2218f5311a163944e8ce347d6503c188 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 29 May 2016 14:57:53 -0400 Subject: [PATCH] tracefs: ->d_parent is never NULL or negative... Signed-off-by: Al Viro --- fs/tracefs/inode.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index 4a0e48f92104..ad40b64c5e2f 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@ -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); -- 2.20.1