VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Miklos Szeredi <mszeredi@suse.cz> 2013-07-17 14:53:54 +0200 committer: Miklos Szeredi <mszeredi@suse.cz> 2013-07-17 14:53:54 +0200 commit: c7263bcdc4d150e3c718b711a5f6fad496d9f662 parent: fa2b7213600f8110ebac64acebc78a885b0594a0
Commit Summary:
fuse: readdirplus: cleanup
Diffstat:
1 file changed, 1 insertion, 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;
 }