diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:32:35 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:15:21 +0200 |
commit | 83e875a21fbaa1a3e109d9ee4442ad4c6fa74b6e (patch) | |
tree | 94436a7dc023a8279c1a50815298554db03387b1 /Vlv2TbltDevicePkg | |
parent | 67f60d3b93ae1390bea3209b64d986eed75f1edf (diff) | |
download | edk2-83e875a21fbaa1a3e109d9ee4442ad4c6fa74b6e.tar.gz edk2-83e875a21fbaa1a3e109d9ee4442ad4c6fa74b6e.tar.bz2 edk2-83e875a21fbaa1a3e109d9ee4442ad4c6fa74b6e.zip |
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>
Diffstat (limited to 'Vlv2TbltDevicePkg')
-rw-r--r-- | Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c index 898fc7cf0d..657d19a6e7 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);
|