IPMIFruArea: move assignments to constructor list
Move member assignment to constructor list.
Change-Id: I140aabc92533c07f6c50eb19a323e6c52dbf43a4
Signed-off-by: Patrick Venture <venture@google.com>
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 @@
// 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_";