summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-29 20:57:53 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-29 22:22:07 +0200
commit0ba3353c2218f5311a163944e8ce347d6503c188 (patch)
treed78b9f637cfd1f8df15c68b6e986aaa4cb2e8ac7 /fs
parentsecurityfs: ->d_parent is never NULL or negative (diff)
downloadlinux-0ba3353c2218f5311a163944e8ce347d6503c188.tar.xz
linux-0ba3353c2218f5311a163944e8ce347d6503c188.zip
tracefs: ->d_parent is never NULL or negative...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/tracefs/inode.c7
1 files changed, 0 insertions, 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);