]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Fixed 'variable set but not used' build warning.
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Mar 2013 07:26:19 +0000 (07:26 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Mar 2013 07:26:19 +0000 (07:26 +0000)
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

MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
MdeModulePkg/Universal/SetupBrowserDxe/Expression.c

index bfe1cd89fcafb905092d81216bef01e12428f69b..e6c0d1564241ac99a6e7f3d7bf7fdc86ac40a55c 100644 (file)
@@ -1238,7 +1238,6 @@ XhcMonitorAsyncRequests (
   UINT8                   *ProcBuf;\r
   URB                     *Urb;\r
   UINT8                   SlotId;\r
-  EFI_STATUS              Status;\r
   EFI_TPL                 OldTpl;\r
 \r
   OldTpl = gBS->RaiseTPL (XHC_TPL);\r
@@ -1260,7 +1259,7 @@ XhcMonitorAsyncRequests (
     // Check the result of URB execution. If it is still\r
     // active, check the next one.\r
     //\r
-    Status = XhcCheckUrbResult (Xhc, Urb);\r
+    XhcCheckUrbResult (Xhc, Urb);\r
 \r
     if (!Urb->Finished) {\r
       continue;\r
@@ -1625,20 +1624,14 @@ XhcCheckNewEvent (
   OUT TRB_TEMPLATE            **NewEvtTrb\r
   )\r
 {\r
-  EFI_STATUS          Status;\r
-  TRB_TEMPLATE        *EvtTrb;\r
-\r
   ASSERT (EvtRing != NULL);\r
 \r
-  EvtTrb     = EvtRing->EventRingDequeue;\r
   *NewEvtTrb = EvtRing->EventRingDequeue;\r
 \r
   if (EvtRing->EventRingDequeue == EvtRing->EventRingEnqueue) {\r
     return EFI_NOT_READY;\r
   }\r
 \r
-  Status = EFI_SUCCESS;\r
-\r
   EvtRing->EventRingDequeue++;\r
   //\r
   // If the dequeue pointer is beyond the ring, then roll-back it to the begining of the ring.\r
@@ -1647,7 +1640,7 @@ XhcCheckNewEvent (
     EvtRing->EventRingDequeue = EvtRing->EventRingSeg0;\r
   }\r
 \r
-  return Status;\r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
index 4a431f0dec5124c472bafd06361d7042a4affa47..cd29e294385ccc5adf1d58b84ed9bda1317f5594 100644 (file)
@@ -1446,7 +1446,6 @@ IfrMid (
   UINTN          Base;\r
   UINTN          Length;\r
   CHAR16         *SubString;\r
-  UINT8          *Buffer;\r
   UINT16         BufferLen;\r
 \r
   ZeroMem (Value, sizeof (Value));\r
@@ -1502,7 +1501,6 @@ IfrMid (
 \r
     FreePool (String);\r
   } else {\r
-    Buffer    = Value[2].Buffer;\r
     BufferLen = Value[2].BufferLen;\r
     \r
     Result->Type = EFI_IFR_TYPE_BUFFER;\r