From 98de3b3ea1722594d7e13b73eeb5be4e2d077333 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Sat, 20 Oct 2018 20:32:14 -0700 Subject: IPMIFruArea: move assignments to constructor list Move member assignment to constructor list. Change-Id: I140aabc92533c07f6c50eb19a323e6c52dbf43a4 Signed-off-by: Patrick Venture --- fru_area.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/fru_area.cpp b/fru_area.cpp index 1f90064..d70c724 100644 --- a/fru_area.cpp +++ b/fru_area.cpp @@ -12,15 +12,10 @@ using namespace phosphor::logging; // Constructor //---------------------------------------------------------------- IPMIFruArea::IPMIFruArea(const uint8_t fruid, const ipmi_fru_area_type type, - bool bmc_fru) + bool bmc_fru) : + iv_fruid(fruid), + iv_type(type), iv_bmc_fru(bmc_fru) { - iv_fruid = fruid; - iv_type = type; - iv_bmc_fru = bmc_fru; - iv_valid = false; - iv_data = NULL; - iv_present = false; - if (iv_type == IPMI_FRU_AREA_INTERNAL_USE) { iv_name = "INTERNAL_"; -- cgit v1.2.1