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.