]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c
OptionRomPkg: Fix GCC build failure
[mirror_edk2.git] / OptionRomPkg / Bus / Usb / UsbNetworking / Ax88772 / Ax88772.c
index dd18a957b86eea466d2274fc673ec6adfef68b98..73d54f0bfc16831c3bedb08f83f528563ba6c8a7 100644 (file)
@@ -667,7 +667,6 @@ FillPkt2Queue (
   UINT8* pData;\r
   UINT32 offset;\r
   RX_TX_PACKET * pRxPacket;\r
-  UINTN LengthInBytes;\r
   EFI_STATUS Status;\r
   \r
   for ( offset = 0; offset < BufLength; ){\r
@@ -684,7 +683,6 @@ FillPkt2Queue (
     }\r
       \r
     pRxPacket = pNicDevice->pRxFree;\r
-    LengthInBytes = sizeof ( *pRxPacket ) - sizeof ( pRxPacket->pNext );\r
     if ( NULL == pRxPacket ) {\r
       Status = gBS->AllocatePool ( EfiRuntimeServicesData,\r
                                    sizeof( RX_TX_PACKET ),\r