summaryrefslogtreecommitdiffstats
path: root/src/usr/fsi
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-04-08 14:44:17 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-17 15:35:06 -0500
commit0c3bff9ef573124995a2682e614113620b535127 (patch)
tree390d9907a1614470b128c221d223cdaeebad46e4 /src/usr/fsi
parent198ccaf1e562c281684e47a2209b7ce29c9c71e6 (diff)
downloadtalos-hostboot-0c3bff9ef573124995a2682e614113620b535127.tar.gz
talos-hostboot-0c3bff9ef573124995a2682e614113620b535127.zip
Uninitialized variable in FSIDD.
Change-Id: Ie3fa44eb063c2c51c2fd611114c789fea5f3c71f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4037 Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/fsi')
-rw-r--r--src/usr/fsi/fsidd.C22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/usr/fsi/fsidd.C b/src/usr/fsi/fsidd.C
index 85669566b..e3e0a5614 100644
--- a/src/usr/fsi/fsidd.C
+++ b/src/usr/fsi/fsidd.C
@@ -410,24 +410,13 @@ errlHndl_t FsiDD::initializeHardware()
} target_chipInfo_t ;
// list of ports off of local MFSI
- target_chipInfo_t local_mfsi[MAX_SLAVE_PORTS];
- for( uint8_t mfsi=0; mfsi<MAX_SLAVE_PORTS; mfsi++ ) {
- local_mfsi[mfsi].targ = NULL;
- }
+ target_chipInfo_t local_mfsi[MAX_SLAVE_PORTS] = {};
// list of possible ports off of local cMFSI
- target_chipInfo_t local_cmfsi[MAX_SLAVE_PORTS];
- for( uint8_t cmfsi=0; cmfsi<MAX_SLAVE_PORTS; cmfsi++ ) {
- local_cmfsi[cmfsi].targ = NULL;
- }
+ target_chipInfo_t local_cmfsi[MAX_SLAVE_PORTS] = {};
// array of possible ports to initialize : [mfsi port][cmfsi port]
- target_chipInfo_t remote_cmfsi[MAX_SLAVE_PORTS][MAX_SLAVE_PORTS];
- for( uint8_t mfsi=0; mfsi<MAX_SLAVE_PORTS; mfsi++ ) {
- for( uint8_t cmfsi=0; cmfsi<MAX_SLAVE_PORTS; cmfsi++ ) {
- remote_cmfsi[mfsi][cmfsi].targ = NULL;
- }
- }
+ target_chipInfo_t remote_cmfsi[MAX_SLAVE_PORTS][MAX_SLAVE_PORTS] = {};
FsiChipInfo_t info;
@@ -481,7 +470,6 @@ errlHndl_t FsiDD::initializeHardware()
// initialize all of the local MFSI ports
for( uint8_t mfsi=0; mfsi<MAX_SLAVE_PORTS; mfsi++ )
{
-
bool slave_present = false;
l_err = initPort( local_mfsi[mfsi].info,
slave_present );
@@ -491,7 +479,7 @@ errlHndl_t FsiDD::initializeHardware()
ERRORLOG::ErrlUserDetailsTarget(
local_mfsi[mfsi].targ
).addToLog(l_err);
-
+
// commit the log here so that we can move on to next port
errlCommit(l_err,FSI_COMP_ID);
@@ -853,7 +841,7 @@ errlHndl_t FsiDD::handleOpbErrors(FsiAddrInfo_t& i_addrInfo,
// Add data to main error log 'l_err' where possible
size_t l_data_size = sizeof(data);
- ERRORLOG::ErrlUserDetailsLogRegister
+ ERRORLOG::ErrlUserDetailsLogRegister
l_eud_fsiT(i_addrInfo.fsiTarg);
l_err2 = read( 0x31D0, &data );
OpenPOWER on IntegriCloud