Skip to content

Commit

Permalink
Remove useless initialization of m_port_ready_list_ref (sonic-net#591)
Browse files Browse the repository at this point in the history
* Remove useless initialization of m_port_ready_list_ref
  • Loading branch information
pavel-shirshov authored Aug 23, 2018
1 parent 7e27af9 commit bff03e9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions orchagent/bufferorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ void BufferOrch::initBufferReadyList(Table& table)
{
SWSS_LOG_ENTER();

// init all ports with an empty list
for (const auto& it: gPortsOrch->getAllPorts())
{
if (it.second.m_type == Port::PHY)
{
const auto& port_name = it.first;
m_port_ready_list_ref[port_name] = {};
}
}

std::vector<std::string> keys;
table.getKeys(keys);

Expand Down

0 comments on commit bff03e9

Please sign in to comment.