summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/Library
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-26 18:24:24 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-27 10:50:19 +0200
commit62bea967beaf7ae1f22a6bbe8def63efed1f4a14 (patch)
treeef05d81e6e459dd5756821ee7dbc2b9282c278ac /ArmVirtPkg/Library
parentf48c81f12a45186e2f9015040edf8ee64bbcbfe3 (diff)
downloadedk2-62bea967beaf7ae1f22a6bbe8def63efed1f4a14.tar.gz
edk2-62bea967beaf7ae1f22a6bbe8def63efed1f4a14.tar.bz2
edk2-62bea967beaf7ae1f22a6bbe8def63efed1f4a14.zip
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>
Diffstat (limited to 'ArmVirtPkg/Library')
-rw-r--r--ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c2
1 files changed, 1 insertions, 1 deletions
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;
}