diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:31:54 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:15:21 +0200 |
commit | 67f60d3b93ae1390bea3209b64d986eed75f1edf (patch) | |
tree | 78d0e9a5ba087e52be1d46d4c26320a29bf099f7 | |
parent | 5279457b5b9715d52c93c28eaccfcbd9b27d9137 (diff) | |
download | edk2-platforms-67f60d3b93ae1390bea3209b64d986eed75f1edf.tar.xz |
Vlv2TbltDevicePkg/PlatformSetupDxe: 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/PlatformSetupDxe/SetupInfoRecords.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c index 3cdb0132cd..b0e29f02d0 100644 --- a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c +++ b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c @@ -1371,7 +1371,7 @@ UpdatePlatformInformation ( );
Data8 = MmioRead8 (PciD31F0RegBase + R_PCH_LPC_RID_CC);
- count = sizeof (SBRevisionTable) / sizeof (SBRevisionTable[0]);
+ count = ARRAY_SIZE (SBRevisionTable);
for (Index = 0; Index < count; Index++) {
if(Data8 == SBRevisionTable[Index].RevId) {
UnicodeSPrint (Buffer, sizeof (Buffer), L"%02x %a", Data8, SBRevisionTable[Index].String);
|