From 8e5dbe7dffbb8b1bf0453809a9c8d796bfb1b684 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Wed, 3 Dec 2014 10:28:00 +0800 Subject: [PATCH] common/perf_counters: Remove the duplicated code. Signed-off-by: Jianpeng Ma --- src/common/perf_counters.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/perf_counters.cc b/src/common/perf_counters.cc index f92f81efeba6..0f13a3188e17 100644 --- a/src/common/perf_counters.cc +++ b/src/common/perf_counters.cc @@ -167,7 +167,6 @@ void PerfCounters::set(int idx, uint64_t amt) perf_counter_data_any_d& data(m_data[idx - m_lower_bound - 1]); if (!(data.type & PERFCOUNTER_U64)) return; - data.u64.set(amt); if (data.type & PERFCOUNTER_LONGRUNAVG) { data.avgcount.inc(); data.u64.set(amt); -- 2.47.3