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>
This commit is contained in:
Miklos Szeredi 2013-07-17 14:53:54 +02:00
parent fa2b721360
commit c7263bcdc4
1 changed files with 1 additions and 3 deletions

View File

@ -1263,7 +1263,6 @@ static int fuse_direntplus_link(struct file *file,
goto found; goto found;
} }
dput(dentry); dput(dentry);
dentry = NULL;
} }
dentry = d_alloc(parent, &name); dentry = d_alloc(parent, &name);
@ -1299,8 +1298,7 @@ found:
err = 0; err = 0;
out: out:
if (dentry) dput(dentry);
dput(dentry);
return err; return err;
} }