summaryrefslogtreecommitdiff
path: root/redfish-core/lib/chassis.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2020-08-19 19:06:34 +0300
committerEd Tanous <ed@tanous.net>2020-08-19 19:06:34 +0300
commit90728b54474ec551222af675027944ee74103ebf (patch)
treebda7f18bca9b274154e97755738d4f469022e847 /redfish-core/lib/chassis.hpp
parent5beaf840f15f77474e4c8f1dbdbe8a701f1e7f77 (diff)
downloadbmcweb-90728b54474ec551222af675027944ee74103ebf.tar.xz
Fix minor regression in chassis
Despite error code checking generally being a good thing, this seems to cause a regression on systems that don't have an asset interface. See https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/35711 for more details Tested: Expecting CI to test, as it was the one that found the last corner case. Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: Iae013b1d240852908dd5b0107aad8a0089b5961e
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r--redfish-core/lib/chassis.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index c7db370830..4e221cd768 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -353,14 +353,9 @@ class Chassis : public Node
crow::connections::systemBus->async_method_call(
[asyncResp, chassisId(std::string(chassisId))](
- const boost::system::error_code ec2,
+ const boost::system::error_code /*ec2*/,
const std::vector<std::pair<
std::string, VariantType>>& propertiesList) {
- if (ec2)
- {
- return;
- }
-
for (const std::pair<std::string, VariantType>&
property : propertiesList)
{