From 62bea967beaf7ae1f22a6bbe8def63efed1f4a14 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 18:24:24 +0200 Subject: [PATCH] ArmVirtPkg/NorFlashQemuLib: rebase to ARRAY_SIZE() Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel Reviewed-by: Jordan Justen --- ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c index 7f346077e6..d63a2d989f 100644 --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c @@ -46,6 +46,6 @@ NorFlashPlatformGetDevices ( ) { *NorFlashDescriptions = mNorFlashDevices; - *Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]); + *Count = ARRAY_SIZE (mNorFlashDevices); return EFI_SUCCESS; }