mirror of https://gitee.com/openkylin/linux.git
hypfs: ->d_parent is never NULL or negative
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1fe0c0230a
commit
3a8ca1b6bf
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue