summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2016-11-21 05:24:49 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-12-05 12:12:47 -0500
commitec2ce54ef9ad5fedfe16bf00d2c2320716d3f64b (patch)
treef6309f0030e1352deff39973932fcc6eeffaa8d3
parent6d999c9f46d2c1fc43302877f1785a34f22067bf (diff)
downloadtalos-hostboot-ec2ce54ef9ad5fedfe16bf00d2c2320716d3f64b.tar.gz
talos-hostboot-ec2ce54ef9ad5fedfe16bf00d2c2320716d3f64b.zip
Change auto variables to references
Change-Id: I2b9c38757f89d23c627e4a8f2cb3b072bd3bc984 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32867 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32869 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/perv/p9_sbe_common.C2
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_init.C4
-rw-r--r--src/import/hwpf/fapi2/include/ffdc.H2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_common.C b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_common.C
index e11d77260..35d5bf9ae 100644
--- a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_common.C
+++ b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_common.C
@@ -669,7 +669,7 @@ fapi2::ReturnCode p9_sbe_common_get_pg_vector(const
fapi2::buffer<uint8_t> l_read_attrunitpos;
FAPI_INF("p9_sbe_common_get_pg_vector: Entering ...");
- for (auto l_target_cplt : i_target_chip.getChildren<fapi2::TARGET_TYPE_PERV> (fapi2::TARGET_STATE_FUNCTIONAL))
+ for (auto& l_target_cplt : i_target_chip.getChildren<fapi2::TARGET_TYPE_PERV> (fapi2::TARGET_STATE_FUNCTIONAL))
{
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_UNIT_POS, l_target_cplt, l_read_attrunitpos));
uint8_t bitPos = l_read_attrunitpos;
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_init.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_init.C
index da4869eec..8b139ae2b 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_init.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_init.C
@@ -489,7 +489,7 @@ fapi2::ReturnCode pm_ocb_reset(
// -------------------------------------------------------------------------
// Loop over PIB Registers
// -------------------------------------------------------------------------
- for (auto chan : v_reset_chan)
+ for (auto& chan : v_reset_chan)
{
FAPI_INF(" Reset OCB channel : %d", chan);
@@ -521,7 +521,7 @@ fapi2::ReturnCode pm_ocb_reset(
// -------------------------------------------------------------------------
// Loop over OCI Registers
// -------------------------------------------------------------------------
- for (auto chan : v_reset_chan)
+ for (auto& chan : v_reset_chan)
{
FAPI_INF(" Reset OCB channel : %d", chan);
diff --git a/src/import/hwpf/fapi2/include/ffdc.H b/src/import/hwpf/fapi2/include/ffdc.H
index 674435e9d..28976a44c 100644
--- a/src/import/hwpf/fapi2/include/ffdc.H
+++ b/src/import/hwpf/fapi2/include/ffdc.H
@@ -179,7 +179,7 @@ class FirstFailureData
///
inline void addErrorInfo(std::vector<std::shared_ptr<ErrorInfoFfdc>>& i_errorInfo)
{
- for( auto p : i_errorInfo )
+ for( auto& p : i_errorInfo )
{
iv_info->iv_ffdcs.push_back(p);
}
OpenPOWER on IntegriCloud