]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DuetPkg/DuetBdsLib: rebase to ARRAY_SIZE()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 16:27:34 +0000 (18:27 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 27 Oct 2016 09:10:31 +0000 (11:10 +0200)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
DuetPkg/Library/DuetBdsLib/BdsPlatform.c

index 1875dc963680c0fff3e397a16e9004a9008f6197..a4b2aa947322a0e185657c0ab8991fd7376b8b16 100644 (file)
@@ -64,7 +64,7 @@ Returns:
   //\r
   // Iteratively add ACPI Table, SMBIOS Table, MPS Table to EFI System Table\r
   //\r
-  for (Index = 0; Index < sizeof (gTableGuidArray) / sizeof (*gTableGuidArray); ++Index) {\r
+  for (Index = 0; Index < ARRAY_SIZE (gTableGuidArray); ++Index) {\r
     GuidHob.Raw = GetNextGuidHob (gTableGuidArray[Index], HobStart.Raw);\r
     if (GuidHob.Raw != NULL) {\r
       Table = GET_GUID_HOB_DATA (GuidHob.Guid);\r