mirror of https://github.com/acidanthera/audk.git
Vlv2TbltDevicePkg/SmBiosMiscDxe: rebase to ARRAY_SIZE()
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> Reviewed-by: "Guo, Mang" <mang.guo@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
67f60d3b93
commit
83e875a21f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue