From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AB0741A1E43 for ; Wed, 26 Oct 2016 19:31:32 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 26 Oct 2016 19:31:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="1076389495" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 26 Oct 2016 19:31:32 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 19:31:31 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 19:31:31 -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 10:31:29 +0800 From: "Wu, Jiaxin" To: Laszlo Ersek , edk2-devel-01 CC: "Fu, Siyuan" Thread-Topic: [PATCH 34/47] NetworkPkg/TcpDxe: rebase to ARRAY_SIZE() Thread-Index: AQHSL7wIjEOTrQ75CkiXxnyOAatigaC7lO/g Date: Thu, 27 Oct 2016 02:31:28 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B72741389F577@SHSMSX103.ccr.corp.intel.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-35-lersek@redhat.com> In-Reply-To: <20161026190504.9888-35-lersek@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWM4MzM2YjEtNDI4My00MTc2LTg4NzctOGI1NzI2NGY0NzAwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjB3MXJHUjllT0luVEc5VG1mR24rZVY5YnM2TGc5NlRpOVRMMnFlWkptcDA9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 34/47] NetworkPkg/TcpDxe: 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 02:31:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-By: Wu Jiaxin Best Regards! Jiaxin > -----Original Message----- > From: Laszlo Ersek [mailto:lersek@redhat.com] > Sent: Thursday, October 27, 2016 3:05 AM > To: edk2-devel-01 > Cc: Fu, Siyuan ; Wu, Jiaxin > Subject: [PATCH 34/47] NetworkPkg/TcpDxe: rebase to ARRAY_SIZE() >=20 > Cc: Siyuan Fu > Cc: Jiaxin Wu > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek > --- > NetworkPkg/TcpDxe/TcpOutput.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/NetworkPkg/TcpDxe/TcpOutput.c > b/NetworkPkg/TcpDxe/TcpOutput.c index 91e56d369a71..a46cb6099ea8 > 100644 > --- a/NetworkPkg/TcpDxe/TcpOutput.c > +++ b/NetworkPkg/TcpDxe/TcpOutput.c > @@ -797,7 +797,7 @@ TcpToSendData ( > Len =3D TcpDataToSend (Tcb, Force); > Seq =3D Tcb->SndNxt; >=20 > - ASSERT ((Tcb->State) < (sizeof (mTcpOutFlag) / sizeof (mTcpOutFlag[0= ]))); > + ASSERT ((Tcb->State) < (ARRAY_SIZE (mTcpOutFlag))); > Flag =3D mTcpOutFlag[Tcb->State]; >=20 > if ((Flag & TCP_FLG_SYN) !=3D 0) { > -- > 2.9.2 >=20