Skip to content

Commit

Permalink
mon: MonmapMonitor: drop unnecessary 'goto' statements
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
  • Loading branch information
jecluis committed Nov 2, 2016
1 parent c9d46cf commit 20dcb59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mon/MonmapMonitor.cc
Expand Up @@ -408,7 +408,6 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
ss << "adding mon." << name << " at " << addr;
propose = true;
dout(0) << __func__ << " proposing new mon." << name << dendl;
goto reply;

} else if (prefix == "mon remove" ||
prefix == "mon rm") {
Expand Down Expand Up @@ -462,7 +461,6 @@ bool MonmapMonitor::prepare_command(MonOpRequestRef op)
<< ", there will be " << pending_map.size() << " monitors" ;
propose = true;
err = 0;
goto reply;

} else {
ss << "unknown command " << prefix;
Expand Down

0 comments on commit 20dcb59

Please sign in to comment.