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
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index c7db370..4e221cd 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -353,14 +353,9 @@
 
                     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)
                             {