From: Joao Eduardo Luis Date: Wed, 2 Nov 2016 15:38:36 +0000 (+0000) Subject: mon: MonmapMonitor: drop unnecessary 'goto' statements X-Git-Tag: v10.2.4~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12267%2Fhead;p=ceph.git mon: MonmapMonitor: drop unnecessary 'goto' statements Signed-off-by: Joao Eduardo Luis (cherry picked from commit 20dcb597e35e6961db81831facefbe22cecddec3) --- diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 294d0369bbd3..81964bae5f29 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -412,7 +412,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") { @@ -466,7 +465,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;