Commit 3a8ca1b6 authored by Al Viro's avatar Al Viro

hypfs: ->d_parent is never NULL or negative

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1fe0c023
...@@ -72,8 +72,6 @@ static void hypfs_remove(struct dentry *dentry) ...@@ -72,8 +72,6 @@ static void hypfs_remove(struct dentry *dentry)
struct dentry *parent; struct dentry *parent;
parent = dentry->d_parent; parent = dentry->d_parent;
if (!parent || !parent->d_inode)
return;
mutex_lock(&parent->d_inode->i_mutex); mutex_lock(&parent->d_inode->i_mutex);
if (hypfs_positive(dentry)) { if (hypfs_positive(dentry)) {
if (S_ISDIR(dentry->d_inode->i_mode)) if (S_ISDIR(dentry->d_inode->i_mode))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment