MdeModulePkg: Fixed 'variable set but not used' build warning.

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14214 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2013-03-20 07:26:19 +00:00
parent cca77f45cc
commit b6cb9c399a
2 changed files with 2 additions and 11 deletions

View File

@ -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;
}
/**

View File

@ -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;