diff options
Diffstat (limited to 'redfish-core/lib/redfish_util.hpp')
-rw-r--r-- | redfish-core/lib/redfish_util.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/redfish_util.hpp b/redfish-core/lib/redfish_util.hpp index a51aafd998..a42d00d862 100644 --- a/redfish-core/lib/redfish_util.hpp +++ b/redfish-core/lib/redfish_util.hpp @@ -120,7 +120,7 @@ void getPortStatusAndPath(const std::string& serviceName, // is unitsName end with ".socket" std::string unitNameEnd = unitName.substr(lastCharPos); - if (unitNameEnd.compare(".socket") != 0) + if (unitNameEnd != ".socket") { continue; } |