hypfs: ->d_parent is never NULL or negative
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:33:07 +0000 (21:33 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 02:20:20 +0000 (22:20 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/hypfs/inode.c

index 6767b437a103aa2eb9d46fc19df6732f188f040b..a0d92d119f4bf24717e4a5b8007b4836b64cbf1a 100644 (file)
@@ -72,8 +72,6 @@ static void hypfs_remove(struct dentry *dentry)
        struct dentry *parent;
 
        parent = dentry->d_parent;
-       if (!parent || !parent->d_inode)
-               return;
        mutex_lock(&parent->d_inode->i_mutex);
        if (hypfs_positive(dentry)) {
                if (S_ISDIR(dentry->d_inode->i_mode))