]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/SmBiosMiscDxe: rebase to ARRAY_SIZE()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 17:32:35 +0000 (19:32 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 27 Oct 2016 09:15:21 +0000 (11:15 +0200)
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>
Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscOemType0x94Function.c

index 898fc7cf0db302689c4b22bbf4ceac5ea972e79d..657d19a6e757f064804d2938f42295667169939e 100644 (file)
@@ -691,7 +691,7 @@ UpdatePlatformInformation (
                             );\r
 \r
          Data8 = MmioRead8 (PciD31F0RegBase + R_PCH_LPC_RID_CC);\r
-         count = sizeof (SBRevisionTable) / sizeof (SBRevisionTable[0]);\r
+         count = ARRAY_SIZE (SBRevisionTable);\r
          for (Index = 0; Index < count; Index++) {\r
            if(Data8 == SBRevisionTable[Index].RevId) {\r
               UnicodeSPrint (Buffer, sizeof (Buffer), L"%02x %a", Data8, SBRevisionTable[Index].String);\r