Skip to content

Commit 2f26989

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
Fix CQS signal clang-diagnostic-shadow in fbcode/fboss/qsfp_service
Reviewed By: shiva-menta Differential Revision: D91210923 fbshipit-source-id: 3e641855f2e434365e1cd4930409549048e92070
1 parent e28b7fa commit 2f26989

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fboss/qsfp_service/PortManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,11 @@ void PortManager::setOverrideXphyNoTcvrPortToProfileForTesting(
905905
auto zPortID = getPortIDByPortName(*portPairs.zPortName());
906906
// If the SW port does NOT have a transceiver but HAS XPHY, add it to
907907
// overrideXphyNoTcvrPortToProfileForTest_ (XPHY backplane port)
908-
for (const auto& portID : {aPortID, zPortID}) {
909-
if (portID.has_value() && !portHasTransceiver(*portID) &&
910-
cachedXphyPorts_.find(*portID) != cachedXphyPorts_.end()) {
908+
for (const auto& pID : {aPortID, zPortID}) {
909+
if (pID.has_value() && !portHasTransceiver(*pID) &&
910+
cachedXphyPorts_.find(*pID) != cachedXphyPorts_.end()) {
911911
overrideXphyNoTcvrPortToProfileForTest_.emplace(
912-
*portID, *portPairs.profileID());
912+
*pID, *portPairs.profileID());
913913
}
914914
}
915915
}

0 commit comments

Comments
 (0)