Message ID | 20161026190504.9888-48-lersek@redhat.com |
---|---|
State | Accepted |
Commit | 83e875a21fbaa1a3e109d9ee4442ad4c6fa74b6e |
Headers | show |
diff --git a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c index 898fc7cf0db3..657d19a6e757 100644 --- a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c +++ b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c @@ -691,7 +691,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);
Cc: David Wei <david.wei@intel.com> Cc: Tim He <tim.he@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> --- Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel