diff options
Diffstat (limited to 'redfish-core/lib/systems.hpp')
-rw-r--r-- | redfish-core/lib/systems.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index 0d1e12db44..ec4db21226 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -77,11 +77,11 @@ inline void { BMCWEB_LOG_DEBUG << "Cpu Present: " << isCpuPresent; - if (isCpuPresent == true) + if (isCpuPresent) { nlohmann::json& procCount = aResp->res.jsonValue["ProcessorSummary"]["Count"]; - auto procCountPtr = + auto* procCountPtr = procCount.get_ptr<nlohmann::json::number_integer_t*>(); if (procCountPtr != nullptr) { |