summaryrefslogtreecommitdiffstats
path: root/src/usr/fsi
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/fsi')
-rw-r--r--src/usr/fsi/fsidd.C2
-rw-r--r--src/usr/fsi/fsipres.C28
2 files changed, 15 insertions, 15 deletions
diff --git a/src/usr/fsi/fsidd.C b/src/usr/fsi/fsidd.C
index e3e0a5614..c718f1ab9 100644
--- a/src/usr/fsi/fsidd.C
+++ b/src/usr/fsi/fsidd.C
@@ -1403,7 +1403,7 @@ errlHndl_t FsiDD::initMasterControl(TARGETING::Target* i_master,
bool fsp_master_init = false;
TARGETING::Target * sys = NULL;
TARGETING::targetService().getTopLevelTarget( sys );
- TARGETING::SpFunctions spfuncs;
+ TARGETING::SpFunctions spfuncs = TARGETING::SpFunctions();
if( sys
&& sys->tryGetAttr<TARGETING::ATTR_SP_FUNCTIONS>(spfuncs)
&& spfuncs.fsiMasterInit )
diff --git a/src/usr/fsi/fsipres.C b/src/usr/fsi/fsipres.C
index a4b323c83..d1c9b076c 100644
--- a/src/usr/fsi/fsipres.C
+++ b/src/usr/fsi/fsipres.C
@@ -101,7 +101,7 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType,
fsi_present = isSlavePresent(i_target);
}
- // Next look for valid Module VPD
+ // Next look for valid Module VPD
bool mvpd_present = false;
size_t theSize = 0;
@@ -185,9 +185,9 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType,
mvpd_present));
// Callout the processor
- l_errl->addHwCallout( i_target,
- HWAS::SRCI_PRIORITY_LOW,
- HWAS::NO_DECONFIG,
+ l_errl->addHwCallout( i_target,
+ HWAS::SRCI_PRIORITY_LOW,
+ HWAS::NO_DECONFIG,
HWAS::GARD_NULL );
// if there is a saved PLID, apply it to this error log
@@ -201,8 +201,8 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType,
FSI_COMP_ID );
}
-
- bool present = fsi_present & mvpd_present;
+
+ bool present = fsi_present && mvpd_present;
memcpy(io_buffer, &present, sizeof(present));
io_buflen = sizeof(present);
@@ -273,11 +273,11 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType,
if( l_errl )
{
-
+
if( fsi_present )
{
// Save this plid to use later
- l_saved_plid = l_errl->plid();
+ l_saved_plid = l_errl->plid();
// commit this log because we expected to have VPD
errlCommit( l_errl,
@@ -321,7 +321,7 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType,
cvpd_present = true;
}
}
-
+
// Finally compare the 2 methods
if( fsi_present != cvpd_present )
{
@@ -348,9 +348,9 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType,
cvpd_present));
// Callout the membuf
- l_errl->addHwCallout( i_target,
- HWAS::SRCI_PRIORITY_LOW,
- HWAS::NO_DECONFIG,
+ l_errl->addHwCallout( i_target,
+ HWAS::SRCI_PRIORITY_LOW,
+ HWAS::NO_DECONFIG,
HWAS::GARD_NULL );
// if there is a saved PLID, apply it to this error log
@@ -363,8 +363,8 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType,
errlCommit( l_errl,
FSI_COMP_ID );
}
-
- bool present = fsi_present & cvpd_present;
+
+ bool present = fsi_present && cvpd_present;
memcpy(io_buffer, &present, sizeof(present));
io_buflen = sizeof(present);
OpenPOWER on IntegriCloud