diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-03-20 07:26:19 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-03-20 07:26:19 +0000 |
commit | b6cb9c399a0789eb0cd3e46395219fe9b9064822 (patch) | |
tree | 64c4988fd94198e8d9891e3555e696e5f8bc0420 /MdeModulePkg/Bus | |
parent | cca77f45ccb5f390b2ede7a099df336fded05689 (diff) | |
download | edk2-platforms-b6cb9c399a0789eb0cd3e46395219fe9b9064822.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 11 |
1 files changed, 2 insertions, 9 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;
}
/**
|