mirror of https://github.com/acidanthera/audk.git
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;
|
*NorFlashDescriptions = mNorFlashDevices;
|
||||||
*Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]);
|
*Count = ARRAY_SIZE (mNorFlashDevices);
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue