From 33b88931df2dc615f534d66f45cba0ce580975b9 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 2 Nov 2016 15:38:36 +0000 Subject: [PATCH] mon: MonmapMonitor: drop unnecessary 'goto' statements Signed-off-by: Joao Eduardo Luis (cherry picked from commit 20dcb597e35e6961db81831facefbe22cecddec3) --- src/mon/MonmapMonitor.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index a40f6c19a6982..5f20b98eab433 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -414,7 +414,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") { @@ -468,7 +467,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; -- 2.39.5