Fix compare check for 11S
The compare check has an issue as it is not correctly coded
Change-Id: I751cc529dff59ba04b43d6cb4dd9effd80b20d2d
Signed-off-by: jinuthomas <jinu.joy.thomas@in.ibm.com>
diff --git a/ibm_vpd_utils.cpp b/ibm_vpd_utils.cpp
index f717c13..990ce21 100644
--- a/ibm_vpd_utils.cpp
+++ b/ibm_vpd_utils.cpp
@@ -373,7 +373,7 @@
}
else if (((vpdVector[SPD_BYTE_3] & SPD_BYTE_BIT_0_3_MASK) ==
SPD_MODULE_TYPE_DDIMM) &&
- (is11SFormat.compare(MEMORY_VPD_START_TAG)))
+ (is11SFormat.compare(MEMORY_VPD_START_TAG) == 0))
{
// DDIMM Memory VPD format
if ((vpdVector[SPD_BYTE_2] & SPD_BYTE_MASK) == SPD_DRAM_TYPE_DDR5)