From 849a70634356b31fb6532a1e830653277c1b6c52 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 19:29:43 +0200 Subject: [PATCH] Vlv2TbltDevicePkg/FirmwareUpdate: rebase to ARRAY_SIZE() Cc: David Wei Cc: Tim He Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: "Guo, Mang" Reviewed-by: Jordan Justen --- Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c b/Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c index 16629bf93b..8e44224e67 100644 --- a/Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c +++ b/Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c @@ -34,7 +34,7 @@ FV_REGION_INFO mRegionInfo[] = { {FixedPcdGet32 (PcdBiosRomBase), FixedPcdGet32 (PcdBiosRomSize), TRUE} }; -UINTN mRegionInfoCount = sizeof (mRegionInfo) / sizeof (mRegionInfo[0]); +UINTN mRegionInfoCount = ARRAY_SIZE (mRegionInfo); FV_INPUT_DATA mInputData = {0};