summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C')
-rw-r--r--src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C b/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C
index ad442f82d..ebe116431 100644
--- a/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C
+++ b/src/usr/diag/prdf/plat/mem/prdfMemScrubUtils.C
@@ -189,11 +189,8 @@ uint32_t clearEccFirs<TYPE_MCBIST>( ExtensibleChip * i_chip )
0xf83fffffffffffffull );
if ( SUCCESS != o_rc ) break;
- for ( uint32_t p = 0; p < MAX_PORT_PER_MCBIST; p++ )
+ for ( auto mcaChip : getConnected(i_chip, TYPE_MCA) )
{
- ExtensibleChip * mcaChip = getConnectedChild( i_chip, TYPE_MCA, p );
- if ( nullptr == mcaChip ) continue;
-
// Maintenance AUEs/IAUEs will be reported as system checkstops.
// Maintenance IMPEs will be reported as recoverable attentions at
// all times. Maintence IUEs will be masked during Memory
OpenPOWER on IntegriCloud