Skip to content

Commit 9005d18

Browse files
authored
Merge pull request #30 from r12f/user/riffjiang/fix-merge
[202412] Fix bad merge from automation PR #24
2 parents c29f53d + f669e97 commit 9005d18

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

syncd/FlexCounter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,10 +2342,6 @@ std::shared_ptr<BaseCounterContext> FlexCounter::createCounterContext(
23422342
{
23432343
return std::make_shared<CounterContext<sai_policer_stat_t>>(context_name, instance, SAI_OBJECT_TYPE_POLICER, m_vendorSai.get(), m_statsMode);
23442344
}
2345-
else if (context_name == COUNTER_TYPE_POLICER)
2346-
{
2347-
return std::make_shared<CounterContext<sai_policer_stat_t>>(context_name, SAI_OBJECT_TYPE_POLICER, m_vendorSai.get(), m_statsMode);
2348-
}
23492345

23502346
SWSS_LOG_THROW("Invalid counter type %s", context_name.c_str());
23512347
// GCC 8.3 requires a return value here

0 commit comments

Comments
 (0)