From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0DBE81A1E8B for ; Thu, 27 Oct 2016 00:15:09 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 27 Oct 2016 00:15:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="1050957618" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 27 Oct 2016 00:14:07 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 27 Oct 2016 00:14:06 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 27 Oct 2016 00:14:05 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.139]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.104]) with mapi id 14.03.0248.002; Thu, 27 Oct 2016 15:14:03 +0800 From: "Guo, Mang" To: Laszlo Ersek , edk2-devel-01 CC: Tim He , "Wei, David" Thread-Topic: [edk2] [PATCH 46/47] Vlv2TbltDevicePkg/PlatformSetupDxe: rebase to ARRAY_SIZE() Thread-Index: AQHSL7xRMDiNqou6O0+ABLPT081INaC74+JA Date: Thu, 27 Oct 2016 07:14:03 +0000 Message-ID: <22D2C85ED001C54AA20BFE3B0E4751D14FAD7C3C@SHSMSX103.ccr.corp.intel.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-47-lersek@redhat.com> In-Reply-To: <20161026190504.9888-47-lersek@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 46/47] Vlv2TbltDevicePkg/PlatformSetupDxe: rebase to ARRAY_SIZE() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 07:15:09 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Guo, Mang . -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Lasz= lo Ersek Sent: Thursday, October 27, 2016 3:05 AM To: edk2-devel-01 Cc: Tim He; Wei, David Subject: [edk2] [PATCH 46/47] Vlv2TbltDevicePkg/PlatformSetupDxe: rebase to= ARRAY_SIZE() Cc: David Wei Cc: Tim He Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c b/Vlv2Tb= ltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c index 3cdb0132cd04..b0e29f02d067 100644 --- a/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c +++ b/Vlv2TbltDevicePkg/PlatformSetupDxe/SetupInfoRecords.c @@ -1371,7 +1371,7 @@ UpdatePlatformInformation ( ); =20 Data8 =3D MmioRead8 (PciD31F0RegBase + R_PCH_LPC_RID_CC); - count =3D sizeof (SBRevisionTable) / sizeof (SBRevisionTable[0]); + count =3D ARRAY_SIZE (SBRevisionTable); for (Index =3D 0; Index < count; Index++) { if(Data8 =3D=3D SBRevisionTable[Index].RevId) { UnicodeSPrint (Buffer, sizeof (Buffer), L"%02x %a", Data8, S= BRevisionTable[Index].String); --=20 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel