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

index 16629bf93bf31262021968a038337f074917326a..8e44224e6779870880714860cf23b70da220d4fd 100644 (file)
@@ -34,7 +34,7 @@ FV_REGION_INFO mRegionInfo[] = {
   {FixedPcdGet32 (PcdBiosRomBase), FixedPcdGet32 (PcdBiosRomSize), TRUE}\r
 };\r
 \r
-UINTN mRegionInfoCount = sizeof (mRegionInfo) / sizeof (mRegionInfo[0]);\r
+UINTN mRegionInfoCount = ARRAY_SIZE (mRegionInfo);\r
 \r
 FV_INPUT_DATA mInputData = {0};\r
 \r