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 | |
parent | cca77f45ccb5f390b2ede7a099df336fded05689 (diff) | |
download | edk2-b6cb9c399a0789eb0cd3e46395219fe9b9064822.tar.gz edk2-b6cb9c399a0789eb0cd3e46395219fe9b9064822.tar.bz2 edk2-b6cb9c399a0789eb0cd3e46395219fe9b9064822.zip |
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')
-rw-r--r-- | MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 11 | ||||
-rw-r--r-- | 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;
|