diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 18:27:34 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:31 +0200 |
commit | bd4b5962d940017bb3054c7a517576daeda4eed7 (patch) | |
tree | 7d5e5f1cadc69536e78ab3bbd1cd0a1972f35871 /DuetPkg | |
parent | 62bea967beaf7ae1f22a6bbe8def63efed1f4a14 (diff) | |
download | edk2-bd4b5962d940017bb3054c7a517576daeda4eed7.tar.gz edk2-bd4b5962d940017bb3054c7a517576daeda4eed7.tar.bz2 edk2-bd4b5962d940017bb3054c7a517576daeda4eed7.zip |
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>
Diffstat (limited to 'DuetPkg')
-rw-r--r-- | DuetPkg/Library/DuetBdsLib/BdsPlatform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|