mirror of https://github.com/acidanthera/audk.git
DuetPkg/DuetBdsLib: rebase to ARRAY_SIZE()
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>
This commit is contained in:
parent
62bea967be
commit
bd4b5962d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue