From b6cb9c399a0789eb0cd3e46395219fe9b9064822 Mon Sep 17 00:00:00 2001 From: erictian Date: Wed, 20 Mar 2013 07:26:19 +0000 Subject: [PATCH] MdeModulePkg: Fixed 'variable set but not used' build warning. Signed-off-by: Olivier Martin Reviewed-by: Feng Tian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14214 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 11 ++--------- MdeModulePkg/Universal/SetupBrowserDxe/Expression.c | 2 -- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c index bfe1cd89fc..e6c0d15642 100644 --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c @@ -1238,7 +1238,6 @@ XhcMonitorAsyncRequests ( UINT8 *ProcBuf; URB *Urb; UINT8 SlotId; - EFI_STATUS Status; EFI_TPL OldTpl; OldTpl = gBS->RaiseTPL (XHC_TPL); @@ -1260,7 +1259,7 @@ XhcMonitorAsyncRequests ( // Check the result of URB execution. If it is still // active, check the next one. // - Status = XhcCheckUrbResult (Xhc, Urb); + XhcCheckUrbResult (Xhc, Urb); if (!Urb->Finished) { continue; @@ -1625,20 +1624,14 @@ XhcCheckNewEvent ( OUT TRB_TEMPLATE **NewEvtTrb ) { - EFI_STATUS Status; - TRB_TEMPLATE *EvtTrb; - ASSERT (EvtRing != NULL); - EvtTrb = EvtRing->EventRingDequeue; *NewEvtTrb = EvtRing->EventRingDequeue; if (EvtRing->EventRingDequeue == EvtRing->EventRingEnqueue) { return EFI_NOT_READY; } - Status = EFI_SUCCESS; - EvtRing->EventRingDequeue++; // // If the dequeue pointer is beyond the ring, then roll-back it to the begining of the ring. @@ -1647,7 +1640,7 @@ XhcCheckNewEvent ( EvtRing->EventRingDequeue = EvtRing->EventRingSeg0; } - return Status; + return EFI_SUCCESS; } /** diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c index 4a431f0dec..cd29e29438 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c @@ -1446,7 +1446,6 @@ IfrMid ( UINTN Base; UINTN Length; CHAR16 *SubString; - UINT8 *Buffer; UINT16 BufferLen; ZeroMem (Value, sizeof (Value)); @@ -1502,7 +1501,6 @@ IfrMid ( FreePool (String); } else { - Buffer = Value[2].Buffer; BufferLen = Value[2].BufferLen; Result->Type = EFI_IFR_TYPE_BUFFER; -- 2.39.2