From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 801771A1F2B for ; Wed, 21 Sep 2016 19:52:06 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP; 21 Sep 2016 19:52:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,376,1470726000"; d="scan'208";a="12380880" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga004.jf.intel.com with ESMTP; 21 Sep 2016 19:52:04 -0700 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Ruiyu Ni Date: Thu, 22 Sep 2016 10:51:10 +0800 Message-Id: <1474512670-82864-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [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: Thu, 22 Sep 2016 02:52:06 -0000 Remove the variable which is set but not used to pass GCC build. 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(-) 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; for ( offset = 0; offset < BufLength; ){ pLength = (UINT16*) (pNicDevice->pBulkInBuff + offset); pLengthBar = (UINT16*) (pNicDevice->pBulkInBuff + offset +2); @@ -682,11 +681,10 @@ FillPkt2Queue ( DEBUG (( EFI_D_ERROR , "Pkt length error. BufLength = %d\n", BufLength)); return; } pRxPacket = pNicDevice->pRxFree; - LengthInBytes = sizeof ( *pRxPacket ) - sizeof ( pRxPacket->pNext ); if ( NULL == pRxPacket ) { Status = gBS->AllocatePool ( EfiRuntimeServicesData, sizeof( RX_TX_PACKET ), (VOID **) &pRxPacket ); if ( !EFI_ERROR ( Status )) { -- 1.9.5.msysgit.1