Skip to content

Commit

Permalink
rgw/rgw_main: fix unnecessary variables defined
Browse files Browse the repository at this point in the history
Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
  • Loading branch information
yonghengdexin735 committed Jul 29, 2016
1 parent 2b119e8 commit edb17c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rgw/rgw_main.cc
Expand Up @@ -78,9 +78,8 @@ void signal_shutdown()
int val = 0;
int ret = write(signal_fd[0], (char *)&val, sizeof(val));
if (ret < 0) {
int err = -errno;
derr << "ERROR: " << __func__ << ": write() returned "
<< cpp_strerror(-err) << dendl;
<< cpp_strerror(errno) << dendl;
}
}
}
Expand Down

0 comments on commit edb17c3

Please sign in to comment.