summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2017-11-16 11:32:37 -0600
committerChristopher J. Cain <cjcain@us.ibm.com>2017-11-16 13:27:07 -0500
commit601b1ebb9a9cbe35cac8fbbb5e704c7be81aaadf (patch)
tree2f060056be5224249d3c62c68366d6023c3c9618 /src
parentc3446978c1696d95b6294dd52277dfd8e748efd2 (diff)
downloadtalos-occ-601b1ebb9a9cbe35cac8fbbb5e704c7be81aaadf.tar.gz
talos-occ-601b1ebb9a9cbe35cac8fbbb5e704c7be81aaadf.zip
Remove unused variable
Change-Id: I376894941de04d9d685b97e14ae30b49a1aac8e9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49817 Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/occ_405/pss/avsbus.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/occ_405/pss/avsbus.c b/src/occ_405/pss/avsbus.c
index 236ff68..620d376 100644
--- a/src/occ_405/pss/avsbus.c
+++ b/src/occ_405/pss/avsbus.c
@@ -848,7 +848,6 @@ uint16_t avsbus_read_status(const avsbus_type_e i_type)
// Since read was started in previous tick, it should have already completed
// (no need to poll/wait on o2s_ongoing)
- enum occReasonCode rc = OCC_SUCCESS_REASON_CODE;
uint32_t l_status = in32(OCB_O2SSTxB[l_data.bus]);
DEBUG_IN32(OCB_O2SSTxB[l_data.bus], l_status, "OCB_O2SSTxB");
// OCC O2S Status Register
@@ -869,7 +868,6 @@ uint16_t avsbus_read_status(const avsbus_type_e i_type)
{
TRAC_ERR("avsbus_read_status: Error found in Vd%c O2SST[0x%08X] = [0x%08X]",
l_trace_type, OCB_O2SSTxB[l_data.bus], l_status);
- rc = AVSBUS_ERROR;
}
}
else if (l_status & AVSBUS_STATUS_ONGOING) // o2s_ongoing
@@ -881,7 +879,6 @@ uint16_t avsbus_read_status(const avsbus_type_e i_type)
{
TRAC_ERR("avsbus_read_status: Vd%c timeout waiting for o2s_ongoing change O2SST[0x%08X] = [0x%08X]",
l_trace_type, OCB_O2SSTxB[l_data.bus], l_status);
- rc = AVSBUS_TIMEOUT;
}
}
@@ -909,7 +906,6 @@ uint16_t avsbus_read_status(const avsbus_type_e i_type)
{
TRAC_ERR("avsbus_read_status: CRC mismatch in Vd%c rsp O2SRD[0x%08X] = [0x%08X] (calculated CRC 0x%08X)",
l_trace_type, OCB_O2SRDxB[l_data.bus], value, crc);
- rc = AVSBUS_CRC_ERROR;
}
}
// Check for valid command operation and extract read data
@@ -950,7 +946,6 @@ uint16_t avsbus_read_status(const avsbus_type_e i_type)
if ((*l_error_count == 1) || (*l_error_count == MAX_READ_ATTEMPTS))
{
TRAC_ERR("avsbus_read_status: SlaveAck reported no action taken[0x%08X]", value);
- rc = AVSBUS_ERROR;
}
}
}
OpenPOWER on IntegriCloud