summaryrefslogtreecommitdiffstats
path: root/OptionRomPkg/Bus/Usb/UsbNetworking
diff options
context:
space:
mode:
authorBi, Dandan <dandan.bi@intel.com>2016-09-22 10:51:10 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-10-09 11:03:27 +0800
commitea79dc2b77d8438f840e85b44a43760337637a6a (patch)
treedde735356a69a23339b146b0b0b5f2f8ec55f6be /OptionRomPkg/Bus/Usb/UsbNetworking
parent8f3ecc5e530b5d4432ce5622149bd636a8880fb7 (diff)
downloadedk2-ea79dc2b77d8438f840e85b44a43760337637a6a.tar.gz
edk2-ea79dc2b77d8438f840e85b44a43760337637a6a.tar.bz2
edk2-ea79dc2b77d8438f840e85b44a43760337637a6a.zip
OptionRomPkg: Fix GCC build failure
Remove the variable which is set but not used to pass GCC build. Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Diffstat (limited to 'OptionRomPkg/Bus/Usb/UsbNetworking')
-rw-r--r--OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c
index dd18a957b8..73d54f0bfc 100644
--- a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c
+++ b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772/Ax88772.c
@@ -667,7 +667,6 @@ FillPkt2Queue (
UINT8* pData;
UINT32 offset;
RX_TX_PACKET * pRxPacket;
- UINTN LengthInBytes;
EFI_STATUS Status;
for ( offset = 0; offset < BufLength; ){
@@ -684,7 +683,6 @@ FillPkt2Queue (
}
pRxPacket = pNicDevice->pRxFree;
- LengthInBytes = sizeof ( *pRxPacket ) - sizeof ( pRxPacket->pNext );
if ( NULL == pRxPacket ) {
Status = gBS->AllocatePool ( EfiRuntimeServicesData,
sizeof( RX_TX_PACKET ),