Commit c7263bcd authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: readdirplus: cleanup

Niels noted that we don't need the 'dentry = NULL' line.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
CC: Niels de Vos <ndevos@redhat.com>
parent fa2b7213
...@@ -1263,7 +1263,6 @@ static int fuse_direntplus_link(struct file *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,7 +1298,6 @@ static int fuse_direntplus_link(struct file *file, ...@@ -1299,7 +1298,6 @@ static int fuse_direntplus_link(struct file *file,
err = 0; err = 0;
out: out:
if (dentry)
dput(dentry); dput(dentry);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment