From: Joao Eduardo Luis Date: Wed, 2 Nov 2016 15:38:36 +0000 (+0000) Subject: mon: MonmapMonitor: drop unnecessary 'goto' statements X-Git-Tag: v11.1.0~411^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=20dcb597e35e6961db81831facefbe22cecddec3;p=ceph.git mon: MonmapMonitor: drop unnecessary 'goto' statements Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 5511423cef4..60bfd52b100 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -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") { @@ -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;