diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2013-07-17 08:53:54 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-07-17 08:53:54 -0400 |
commit | c7263bcdc4d150e3c718b711a5f6fad496d9f662 (patch) | |
tree | 394cafc4d68f3f6664f4192bcc2fbe1aa01c4940 /fs | |
parent | fa2b7213600f8110ebac64acebc78a885b0594a0 (diff) |
fuse: readdirplus: cleanup
Niels noted that we don't need the 'dentry = NULL' line.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dir.c | 4 |
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, | |||
1263 | goto found; | 1263 | goto found; |
1264 | } | 1264 | } |
1265 | dput(dentry); | 1265 | dput(dentry); |
1266 | dentry = NULL; | ||
1267 | } | 1266 | } |
1268 | 1267 | ||
1269 | dentry = d_alloc(parent, &name); | 1268 | dentry = d_alloc(parent, &name); |
@@ -1299,8 +1298,7 @@ found: | |||
1299 | 1298 | ||
1300 | err = 0; | 1299 | err = 0; |
1301 | out: | 1300 | out: |
1302 | if (dentry) | 1301 | dput(dentry); |
1303 | dput(dentry); | ||
1304 | return err; | 1302 | return err; |
1305 | } | 1303 | } |
1306 | 1304 | ||