Skip to content

Commit

Permalink
fuse: readdirplus: cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Miklos Szeredi committed Jul 17, 2013
1 parent fa2b721 commit c7263bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,6 @@ static int fuse_direntplus_link(struct file *file,
goto found;
}
dput(dentry);
dentry = NULL;
}

dentry = d_alloc(parent, &name);
Expand Down Expand Up @@ -1299,8 +1298,7 @@ static int fuse_direntplus_link(struct file *file,

err = 0;
out:
if (dentry)
dput(dentry);
dput(dentry);
return err;
}

Expand Down

0 comments on commit c7263bc

Please sign in to comment.