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:
Laszlo Ersek 2016-10-26 18:24:24 +02:00
parent f48c81f12a
commit 62bea967be
1 changed files with 1 additions and 1 deletions

View File

@ -46,6 +46,6 @@ NorFlashPlatformGetDevices (
)
{
*NorFlashDescriptions = mNorFlashDevices;
*Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]);
*Count = ARRAY_SIZE (mNorFlashDevices);
return EFI_SUCCESS;
}