From 5df61d83c04dc9b699ea2db6101e347e4eb74778 Mon Sep 17 00:00:00 2001 From: Song Yuan Date: Fri, 12 Feb 2021 16:22:46 -0800 Subject: [PATCH] Revert change that's no needed anymore. --- orchagent/portsorch.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index f92c47e095..2d93ec8590 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -2264,11 +2264,8 @@ void PortsOrch::doPortTask(Consumer &consumer) * 1. Remove ports which don't exist anymore * 2. Create new ports * 3. Initialize all ports - * - * In order to make sure all ports are received, check the size of m_lanesAliasSpeedMap. If the size is - * equal to the port count sent by portsyncd, then all ports are received. */ - if ((m_portConfigState == PORT_CONFIG_RECEIVED || m_portConfigState == PORT_CONFIG_DONE)) + if (m_portConfigState == PORT_CONFIG_RECEIVED || m_portConfigState == PORT_CONFIG_DONE) { for (auto it = m_portListLaneMap.begin(); it != m_portListLaneMap.end();) {