diff options
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 5283fff176..9b1aa438b5 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -685,7 +685,7 @@ inline bool ipv4VerifyIpAndGetBitcount(const std::string& ip, // Count bits for (long bitIdx = 7; bitIdx >= 0; bitIdx--) { - if (value & (1L << bitIdx)) + if ((value & (1L << bitIdx)) != 0) { if (firstZeroInByteHit) { @@ -2355,7 +2355,7 @@ inline void requestEthernetInterfacesRoutes(App& app) return; } // Need both vlanId and vlanEnable to service this request - if (!vlanId) + if (vlanId == 0u) { messages::propertyMissing(asyncResp->res, "VLANId"); } |