Skip to content

Commit

Permalink
client/Client.cc: reduce scope of variable 'r'
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Apr 27, 2018
1 parent f91ffea commit dc43a88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/Client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12364,7 +12364,6 @@ int Client::ll_link(Inode *in, Inode *newparent, const char *newname,
tout(cct) << vnewparent << std::endl;
tout(cct) << newname << std::endl;

int r = 0;
InodeRef target;

auto fuse_default_permissions = cct->_conf->get_val<bool>(
Expand All @@ -12373,7 +12372,7 @@ int Client::ll_link(Inode *in, Inode *newparent, const char *newname,
if (S_ISDIR(in->mode))
return -EPERM;

r = may_hardlink(in, perm);
int r = may_hardlink(in, perm);
if (r < 0)
return r;

Expand Down

0 comments on commit dc43a88

Please sign in to comment.