From ea79dc2b77d8438f840e85b44a43760337637a6a Mon Sep 17 00:00:00 2001 From: "Bi, Dandan" Date: Thu, 22 Sep 2016 10:51:10 +0800 Subject: OptionRomPkg: Fix GCC build failure Remove the variable which is set but not used to pass GCC build. Reviewed-by: 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(-) (limited to 'OptionRomPkg/Bus') 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 ), -- cgit v1.2.3