ipmi_fru_info_area: remove move calls
error: moving a temporary object prevents copy elision
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I054d8b395661545413e320673699153b2b48e28e
diff --git a/ipmi_fru_info_area.cpp b/ipmi_fru_info_area.cpp
index 84af95d..ca06f5b 100644
--- a/ipmi_fru_info_area.cpp
+++ b/ipmi_fru_info_area.cpp
@@ -425,7 +425,7 @@
auto chassisIt = inventory.find(chassis);
if (chassisIt != inventory.end())
{
- chassisArea = std::move(buildChassisInfoArea(chassisIt->second));
+ chassisArea = buildChassisInfoArea(chassisIt->second);
}
// update the offset to chassis data.
buildCommonHeaderSection(chassisArea.size(), curDataOffset, combFruArea);
@@ -435,7 +435,7 @@
auto boardIt = inventory.find(board);
if (boardIt != inventory.end())
{
- boardArea = std::move(buildBoardInfoArea(boardIt->second));
+ boardArea = buildBoardInfoArea(boardIt->second);
}
// update the offset to the board data.
buildCommonHeaderSection(boardArea.size(), curDataOffset, combFruArea);
@@ -445,7 +445,7 @@
auto prodIt = inventory.find(product);
if (prodIt != inventory.end())
{
- prodArea = std::move(buildProductInfoArea(prodIt->second));
+ prodArea = buildProductInfoArea(prodIt->second);
}
// update the offset to the product data.
buildCommonHeaderSection(prodArea.size(), curDataOffset, combFruArea);