diff options
author | Patrick Venture <venture@google.com> | 2018-10-20 20:32:14 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-29 09:06:16 -0700 |
commit | 98de3b3ea1722594d7e13b73eeb5be4e2d077333 (patch) | |
tree | 89e25c0bf6829dd774bca25729f42ae70c9aa02a /fru_area.cpp | |
parent | a19bd0c5aeb0dd9d8ef7da2917ae18175ada7676 (diff) | |
download | ipmi-fru-parser-98de3b3ea1722594d7e13b73eeb5be4e2d077333.tar.gz ipmi-fru-parser-98de3b3ea1722594d7e13b73eeb5be4e2d077333.zip |
IPMIFruArea: move assignments to constructor list
Move member assignment to constructor list.
Change-Id: I140aabc92533c07f6c50eb19a323e6c52dbf43a4
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'fru_area.cpp')
-rw-r--r-- | fru_area.cpp | 11 |
1 files 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_"; |