summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-26 19:29:43 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-27 11:15:20 +0200
commit849a70634356b31fb6532a1e830653277c1b6c52 (patch)
treef90efddb1892b5749f97d59faeac4f59d0039a1b
parentfe6c62fc0cc9931ce7ff921995cd2c1936f6b8b8 (diff)
downloadedk2-849a70634356b31fb6532a1e830653277c1b6c52.tar.gz
edk2-849a70634356b31fb6532a1e830653277c1b6c52.tar.bz2
edk2-849a70634356b31fb6532a1e830653277c1b6c52.zip
Vlv2TbltDevicePkg/FirmwareUpdate: rebase to ARRAY_SIZE()
Cc: David Wei <david.wei@intel.com> Cc: 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>
-rw-r--r--Vlv2TbltDevicePkg/Application/FirmwareUpdate/FirmwareUpdate.c2
1 files changed, 1 insertions, 1 deletions
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};