summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c
index 3cdb0132cd..b0e29f02d0 100644
--- a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c
+++ b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c
@@ -1371,7 +1371,7 @@ UpdatePlatformInformation (
);
Data8 = MmioRead8 (PciD31F0RegBase + R_PCH_LPC_RID_CC);
- count = sizeof (SBRevisionTable) / sizeof (SBRevisionTable[0]);
+ count = ARRAY_SIZE (SBRevisionTable);
for (Index = 0; Index < count; Index++) {
if(Data8 == SBRevisionTable[Index].RevId) {
UnicodeSPrint (Buffer, sizeof (Buffer), L"%02x %a", Data8, SBRevisionTable[Index].String);