mirror of https://github.com/acidanthera/audk.git
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:
parent
cca77f45cc
commit
b6cb9c399a
|
@ -1238,7 +1238,6 @@ XhcMonitorAsyncRequests (
|
||||||
UINT8 *ProcBuf;
|
UINT8 *ProcBuf;
|
||||||
URB *Urb;
|
URB *Urb;
|
||||||
UINT8 SlotId;
|
UINT8 SlotId;
|
||||||
EFI_STATUS Status;
|
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (XHC_TPL);
|
OldTpl = gBS->RaiseTPL (XHC_TPL);
|
||||||
|
@ -1260,7 +1259,7 @@ XhcMonitorAsyncRequests (
|
||||||
// Check the result of URB execution. If it is still
|
// Check the result of URB execution. If it is still
|
||||||
// active, check the next one.
|
// active, check the next one.
|
||||||
//
|
//
|
||||||
Status = XhcCheckUrbResult (Xhc, Urb);
|
XhcCheckUrbResult (Xhc, Urb);
|
||||||
|
|
||||||
if (!Urb->Finished) {
|
if (!Urb->Finished) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -1625,20 +1624,14 @@ XhcCheckNewEvent (
|
||||||
OUT TRB_TEMPLATE **NewEvtTrb
|
OUT TRB_TEMPLATE **NewEvtTrb
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
|
||||||
TRB_TEMPLATE *EvtTrb;
|
|
||||||
|
|
||||||
ASSERT (EvtRing != NULL);
|
ASSERT (EvtRing != NULL);
|
||||||
|
|
||||||
EvtTrb = EvtRing->EventRingDequeue;
|
|
||||||
*NewEvtTrb = EvtRing->EventRingDequeue;
|
*NewEvtTrb = EvtRing->EventRingDequeue;
|
||||||
|
|
||||||
if (EvtRing->EventRingDequeue == EvtRing->EventRingEnqueue) {
|
if (EvtRing->EventRingDequeue == EvtRing->EventRingEnqueue) {
|
||||||
return EFI_NOT_READY;
|
return EFI_NOT_READY;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
|
||||||
|
|
||||||
EvtRing->EventRingDequeue++;
|
EvtRing->EventRingDequeue++;
|
||||||
//
|
//
|
||||||
// If the dequeue pointer is beyond the ring, then roll-back it to the begining of the ring.
|
// 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;
|
EvtRing->EventRingDequeue = EvtRing->EventRingSeg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1446,7 +1446,6 @@ IfrMid (
|
||||||
UINTN Base;
|
UINTN Base;
|
||||||
UINTN Length;
|
UINTN Length;
|
||||||
CHAR16 *SubString;
|
CHAR16 *SubString;
|
||||||
UINT8 *Buffer;
|
|
||||||
UINT16 BufferLen;
|
UINT16 BufferLen;
|
||||||
|
|
||||||
ZeroMem (Value, sizeof (Value));
|
ZeroMem (Value, sizeof (Value));
|
||||||
|
@ -1502,7 +1501,6 @@ IfrMid (
|
||||||
|
|
||||||
FreePool (String);
|
FreePool (String);
|
||||||
} else {
|
} else {
|
||||||
Buffer = Value[2].Buffer;
|
|
||||||
BufferLen = Value[2].BufferLen;
|
BufferLen = Value[2].BufferLen;
|
||||||
|
|
||||||
Result->Type = EFI_IFR_TYPE_BUFFER;
|
Result->Type = EFI_IFR_TYPE_BUFFER;
|
||||||
|
|
Loading…
Reference in New Issue