Remove the variable which is set but not used to pass GCC build.

Cc: Ruiyu Ni <ruiyu...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan...@intel.com>
---
 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

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to