summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-26 19:30:30 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-27 11:15:21 +0200
commit800355c4b3336b8af5c0c3c101be8a3892852029 (patch)
treefeaf8faef6ea99975fbd8569ad2bd2f3063bcd51 /Vlv2TbltDevicePkg
parent849a70634356b31fb6532a1e830653277c1b6c52 (diff)
downloadedk2-800355c4b3336b8af5c0c3c101be8a3892852029.zip
edk2-800355c4b3336b8af5c0c3c101be8a3892852029.tar.gz
edk2-800355c4b3336b8af5c0c3c101be8a3892852029.tar.bz2
Vlv2TbltDevicePkg/PlatformInitPei: rebase to ARRAY_SIZE()
M: David Wei <david.wei@intel.com> M: Tim He <tim.he@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: "Guo, Mang" <mang.guo@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'Vlv2TbltDevicePkg')
-rw-r--r--Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c b/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c
index 282faa8..54ad42b 100644
--- a/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c
+++ b/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c
@@ -72,7 +72,7 @@ static EFI_FLASH_AREA_DATA mFlashAreaData[] = {
};
-#define NUM_FLASH_AREA_DATA (sizeof (mFlashAreaData) / sizeof (mFlashAreaData[0]))
+#define NUM_FLASH_AREA_DATA (ARRAY_SIZE (mFlashAreaData))
/**
Build GUID HOBs for platform specific flash map.