summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-05-12 14:46:22 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-18 18:08:33 -0400
commitcbb710598089d78c5e6f58730de9c017b287db9d (patch)
tree0876abf05eae655bfc79e854e23aff2e62bf533c /src/import/chips/p9
parent97bf038ec9ca77d7b1e0c1bdf1e184f782b5fb66 (diff)
downloadtalos-hostboot-cbb710598089d78c5e6f58730de9c017b287db9d.tar.gz
talos-hostboot-cbb710598089d78c5e6f58730de9c017b287db9d.zip
Update rank.C to initialize l_ranks to 0 for ranks() function
Change-Id: I1da19e964d51296ca111619dc462fc7065c71713 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24474 Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24476 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/dimm/rank.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/rank.C b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/rank.C
index a8ba500f4..14b5db026 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/dimm/rank.C
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/dimm/rank.C
@@ -194,7 +194,7 @@ fapi_try_exit:
template<>
fapi2::ReturnCode ranks( const fapi2::Target<TARGET_TYPE_DIMM>& i_target, std::vector< uint64_t >& o_ranks )
{
- uint8_t l_ranks;
+ uint8_t l_ranks = 0;
FAPI_TRY( eff_num_ranks_per_dimm(i_target, l_ranks) );
o_ranks = single_dimm_ranks[mss::index(i_target)][l_ranks];
OpenPOWER on IntegriCloud