Skip to content

Commit

Permalink
[orchagent] Fix typo in PortsOrch::initPortSupportedSpeeds (#1755)
Browse files Browse the repository at this point in the history
* [orchagent] Fix typo in initPortSupportedSpeeds
  • Loading branch information
Junchao-Mellanox authored May 27, 2021
1 parent a44e651 commit 1bc94d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1bc94d1

Please sign in to comment.