]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/PlatformSetupDxe: rebase to ARRAY_SIZE()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 17:31:54 +0000 (19:31 +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/PlatformSetupDxe/SetupInfoRecords.c

index 3cdb0132cd04217b6d8c5b6f707271f2c7a06b54..b0e29f02d067c0fa4dd8693fa3556267e195bc26 100644 (file)
@@ -1371,7 +1371,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