summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/fuse/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 37d85e05b1f5..72a5d5b04494 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -1263,7 +1263,6 @@ static int fuse_direntplus_link(struct file *file,
goto found;
}
dput(dentry);
- dentry = NULL;
}
dentry = d_alloc(parent, &name);
@@ -1299,8 +1298,7 @@ found:
err = 0;
out:
- if (dentry)
- dput(dentry);
+ dput(dentry);
return err;
}