]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/NorFlashQemuLib: rebase to ARRAY_SIZE()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 16:24:24 +0000 (18:24 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 27 Oct 2016 08:50:19 +0000 (10:50 +0200)
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>
ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c

index 7f346077e6b5f77e53e27a738a4e27a167a32203..d63a2d989f69955a60221971cf7d4990a0dbfcb4 100644 (file)
@@ -46,6 +46,6 @@ NorFlashPlatformGetDevices (
   )\r
 {\r
   *NorFlashDescriptions = mNorFlashDevices;\r
-  *Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]);\r
+  *Count = ARRAY_SIZE (mNorFlashDevices);\r
   return EFI_SUCCESS;\r
 }\r