From 1bc94d15281cc294bf07dffe30905408133b7559 Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Thu, 27 May 2021 23:44:48 +0800 Subject: [PATCH] [orchagent] Fix typo in PortsOrch::initPortSupportedSpeeds (#1755) * [orchagent] Fix typo in initPortSupportedSpeeds --- orchagent/portsorch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 26e543341c5e..667e9d976be1 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -1713,7 +1713,8 @@ void PortsOrch::getPortSupportedSpeeds(const std::string& alias, sai_object_id_t void PortsOrch::initPortSupportedSpeeds(const std::string& alias, sai_object_id_t port_id) { - if (!m_portSupportedSpeeds.count(port_id)) + // If port supported speeds map already contains the information, save the SAI call + if (m_portSupportedSpeeds.count(port_id)) { return; }