From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D67F81A1E43 for ; Wed, 26 Oct 2016 18:50:50 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP; 26 Oct 2016 18:50:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="24163462" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 26 Oct 2016 18:50:40 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 18:50:40 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 18:50:40 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.209]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.104]) with mapi id 14.03.0248.002; Thu, 27 Oct 2016 09:50:38 +0800 From: "Ni, Ruiyu" To: Laszlo Ersek , edk2-devel-01 CC: "Tian, Feng" , "Zeng, Star" Thread-Topic: [PATCH 28/47] MdeModulePkg/BdsDxe: rebase to ARRAY_SIZE() Thread-Index: AQHSL7wEScEcdx9nJE6Kfm32+7AAdqC7iYiQ Date: Thu, 27 Oct 2016 01:50:38 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D58E42D8E@SHSMSX104.ccr.corp.intel.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-29-lersek@redhat.com> In-Reply-To: <20161026190504.9888-29-lersek@redhat.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDkzYzU0MjctNDA4ZS00MWI0LTkyODItMDA0MDQwYjkwMGY5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Ik1MZkF1ZDdxYW9TK3RrcndWTGVoTk52QzNuQklHYXE0UUdFMnp2a2hyM289In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 28/47] MdeModulePkg/BdsDxe: 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 01:50:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Regards, Ray >-----Original Message----- >From: Laszlo Ersek [mailto:lersek@redhat.com] >Sent: Thursday, October 27, 2016 3:05 AM >To: edk2-devel-01 >Cc: Tian, Feng ; Ni, Ruiyu ; Zeng= , Star >Subject: [PATCH 28/47] MdeModulePkg/BdsDxe: rebase to ARRAY_SIZE() > >Cc: Feng Tian >Cc: Ruiyu Ni >Cc: Star Zeng >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Laszlo Ersek >--- > MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c b/MdeModulePkg/Unive= rsal/BdsDxe/BdsEntry.c >index c86cd7a576ad..aacc4a64794d 100644 >--- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c >+++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c >@@ -654,7 +654,7 @@ BdsEntry ( > Status =3D gBS->LocateProtocol (&gEdkiiVariableLockProtocolGuid, NULL, = (VOID **) &VariableLock); > DEBUG ((EFI_D_INFO, "[BdsDxe] Locate Variable Lock protocol - %r\n", St= atus)); > if (!EFI_ERROR (Status)) { >- for (Index =3D 0; Index < sizeof (mReadOnlyVariables) / sizeof (mRead= OnlyVariables[0]); Index++) { >+ for (Index =3D 0; Index < ARRAY_SIZE (mReadOnlyVariables); Index++) { > Status =3D VariableLock->RequestToLock (VariableLock, mReadOnlyVari= ables[Index], &gEfiGlobalVariableGuid); > ASSERT_EFI_ERROR (Status); > } >-- >2.9.2 >