summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_health.c
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2017-10-20 10:56:02 -0500
committerChristopher J. Cain <cjcain@us.ibm.com>2017-10-20 12:13:19 -0400
commit6404302e1b1eae001edcec4a5c8e4c4ce5cdaaa3 (patch)
tree699ffa218bb123af5ccb6ec6f0776bb11fd962f9 /src/occ_405/amec/amec_health.c
parentbacb45ad1cc0da113290f0e169c33e5f0885c171 (diff)
downloadtalos-occ-6404302e1b1eae001edcec4a5c8e4c4ce5cdaaa3.tar.gz
talos-occ-6404302e1b1eae001edcec4a5c8e4c4ce5cdaaa3.zip
Prevent error when VRM temperature limit is not set
Change-Id: Iba0fe0222f26be4e9f09f1deff29dda227fdfe93 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48642 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_health.c')
-rwxr-xr-xsrc/occ_405/amec/amec_health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/occ_405/amec/amec_health.c b/src/occ_405/amec/amec_health.c
index fcc9698..f0b2609 100755
--- a/src/occ_405/amec/amec_health.c
+++ b/src/occ_405/amec/amec_health.c
@@ -1028,7 +1028,7 @@ void amec_health_check_vrm_vdd_temp(const sensor_t *i_sensor)
l_ot_error = g_amec->thermalvdd.ot_error;
// Check to see if we exceeded our error temperature
- if (i_sensor->sample > l_ot_error)
+ if ((l_ot_error != 0) && (i_sensor->sample > l_ot_error))
{
// Increment the error counter for this FRU
L_error_count++;
OpenPOWER on IntegriCloud