summaryrefslogtreecommitdiff
path: root/drivers/block/drbd
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-29 14:52:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-29 16:21:55 -0400
commit07a8e62fde3c17e3d25e397cb5028176756fa316 (patch)
treecebd72fd04c7bbaa0303e8c25462c514b4a997fa /drivers/block/drbd
parent2853908a59603118f854b813da055c26257dfa4f (diff)
downloadlwn-07a8e62fde3c17e3d25e397cb5028176756fa316.tar.gz
lwn-07a8e62fde3c17e3d25e397cb5028176756fa316.zip
drbd: ->d_parent is never NULL or negative
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r--drivers/block/drbd/drbd_debugfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_debugfs.c b/drivers/block/drbd/drbd_debugfs.c
index 4de95bbff486..71cdce707ff2 100644
--- a/drivers/block/drbd/drbd_debugfs.c
+++ b/drivers/block/drbd/drbd_debugfs.c
@@ -430,9 +430,6 @@ static int drbd_single_open(struct file *file, int (*show)(struct seq_file *, vo
/* Are we still linked,
* or has debugfs_remove() already been called? */
parent = file->f_path.dentry->d_parent;
- /* not sure if this can happen: */
- if (!parent || d_really_is_negative(parent))
- goto out;
/* serialize with d_delete() */
inode_lock(d_inode(parent));
/* Make sure the object is still alive */
@@ -445,7 +442,6 @@ static int drbd_single_open(struct file *file, int (*show)(struct seq_file *, vo
if (ret)
kref_put(kref, release);
}
-out:
return ret;
}