public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Dandan Bi <dandan.bi@intel.com>
To: edk2-devel@lists.01.org
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Subject: [patch] OptionRomPkg: Fix GCC build failure
Date: Thu, 22 Sep 2016 10:51:10 +0800	[thread overview]
Message-ID: <1474512670-82864-1-git-send-email-dandan.bi@intel.com> (raw)

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

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



             reply	other threads:[~2016-09-22  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  2:51 Dandan Bi [this message]
2016-10-09  3:14 ` [patch] OptionRomPkg: Fix GCC build failure Ni, Ruiyu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474512670-82864-1-git-send-email-dandan.bi@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox