diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:30:30 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:15:21 +0200 |
commit | 800355c4b3336b8af5c0c3c101be8a3892852029 (patch) | |
tree | feaf8faef6ea99975fbd8569ad2bd2f3063bcd51 /Vlv2TbltDevicePkg | |
parent | 849a70634356b31fb6532a1e830653277c1b6c52 (diff) | |
download | edk2-800355c4b3336b8af5c0c3c101be8a3892852029.tar.gz edk2-800355c4b3336b8af5c0c3c101be8a3892852029.tar.bz2 edk2-800355c4b3336b8af5c0c3c101be8a3892852029.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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.
|