mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
ArmVirtPkg/NorFlashQemuLib: rebase to ARRAY_SIZE()
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f48c81f12a
commit
62bea967be
@ -46,6 +46,6 @@ NorFlashPlatformGetDevices (
|
||||
)
|
||||
{
|
||||
*NorFlashDescriptions = mNorFlashDevices;
|
||||
*Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]);
|
||||
*Count = ARRAY_SIZE (mNorFlashDevices);
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user