From 800355c4b3336b8af5c0c3c101be8a3892852029 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 19:30:30 +0200 Subject: Vlv2TbltDevicePkg/PlatformInitPei: rebase to ARRAY_SIZE() M: David Wei M: Tim He Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: "Guo, Mang" Reviewed-by: Jordan Justen --- Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Vlv2TbltDevicePkg') diff --git a/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c b/Vlv2TbltDevicePkg/PlatformInitPei/FlashMap.c index 282faa85ff..54ad42bb27 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. -- cgit v1.2.3