From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CF48D1A1E24 for ; Sat, 8 Oct 2016 20:14:24 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 08 Oct 2016 20:14:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,316,1473145200"; d="scan'208";a="17669181" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 08 Oct 2016 20:14:24 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 8 Oct 2016 20:14:24 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sat, 8 Oct 2016 20:14:23 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.101]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.96]) with mapi id 14.03.0248.002; Sun, 9 Oct 2016 11:14:20 +0800 From: "Ni, Ruiyu" To: "Bi, Dandan" , "edk2-devel@lists.01.org" Thread-Topic: [patch] OptionRomPkg: Fix GCC build failure Thread-Index: AQHSFHxQbxzuZHf3206gbvJ8Mc++kaCfjWQg Date: Sun, 9 Oct 2016 03:14:19 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D58E15E1C@SHSMSX104.ccr.corp.intel.com> References: <1474512670-82864-1-git-send-email-dandan.bi@intel.com> In-Reply-To: <1474512670-82864-1-git-send-email-dandan.bi@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [patch] OptionRomPkg: Fix GCC build failure 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: Sun, 09 Oct 2016 03:14:25 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Pushed as ea79dc2b77d8438f840e85b44a43760337637a6a. > -----Original Message----- > From: Bi, Dandan > Sent: Thursday, September 22, 2016 10:51 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu > Subject: [patch] OptionRomPkg: Fix GCC build failure >=20 > Remove the variable which is set but not used to pass GCC build. >=20 > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Dandan Bi > --- > OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c | 2 -- > 1 file changed, 2 deletions(-) >=20 > diff --git a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c > b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c > index dd18a95..73d54f0 100644 > --- a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c > +++ b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c > @@ -665,11 +665,10 @@ FillPkt2Queue ( > UINT16 * pLength; > UINT16 * pLengthBar; > UINT8* pData; > UINT32 offset; > RX_TX_PACKET * pRxPacket; > - UINTN LengthInBytes; > EFI_STATUS Status; >=20 > for ( offset =3D 0; offset < BufLength; ){ > pLength =3D (UINT16*) (pNicDevice->pBulkInBuff + offset); > pLengthBar =3D (UINT16*) (pNicDevice->pBulkInBuff + offset +2); @@ - > 682,11 +681,10 @@ FillPkt2Queue ( > DEBUG (( EFI_D_ERROR , "Pkt length error. BufLength =3D %d\n", > BufLength)); > return; > } >=20 > pRxPacket =3D pNicDevice->pRxFree; > - LengthInBytes =3D sizeof ( *pRxPacket ) - sizeof ( pRxPacket->pNext = ); > if ( NULL =3D=3D pRxPacket ) { > Status =3D gBS->AllocatePool ( EfiRuntimeServicesData, > sizeof( RX_TX_PACKET ), > (VOID **) &pRxPacket ); > if ( !EFI_ERROR ( Status )) { > -- > 1.9.5.msysgit.1