Skip to content

Commit d8843b7

Browse files
Refactor port iteration
1 parent b841d8a commit d8843b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

orchagent/portsorch.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6466,9 +6466,8 @@ void PortsOrch::initializePriorityGroupsBulk(std::vector<Port>& ports)
64666466

64676467
// Track separate bulker index for verification
64686468
size_t bulker_idx = 0;
6469-
for (size_t idx = 0; idx < portCount; idx++)
6469+
for (auto& port: ports)
64706470
{
6471-
const auto& port = ports[idx];
64726471
if (port.m_priority_group_ids.size() == 0)
64736472
{
64746473
continue;

0 commit comments

Comments
 (0)