From bd4b5962d940017bb3054c7a517576daeda4eed7 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 18:27:34 +0200 Subject: [PATCH] DuetPkg/DuetBdsLib: rebase to ARRAY_SIZE() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen Reviewed-by: Ruiyu Ni --- DuetPkg/Library/DuetBdsLib/BdsPlatform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c index 1875dc9636..a4b2aa9473 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c @@ -64,7 +64,7 @@ Returns: // // Iteratively add ACPI Table, SMBIOS Table, MPS Table to EFI System Table // - for (Index = 0; Index < sizeof (gTableGuidArray) / sizeof (*gTableGuidArray); ++Index) { + for (Index = 0; Index < ARRAY_SIZE (gTableGuidArray); ++Index) { GuidHob.Raw = GetNextGuidHob (gTableGuidArray[Index], HobStart.Raw); if (GuidHob.Raw != NULL) { Table = GET_GUID_HOB_DATA (GuidHob.Guid); -- 2.39.2