Revision: 14214
          http://edk2.svn.sourceforge.net/edk2/?rev=14214&view=rev
Author:   erictian
Date:     2013-03-20 07:26:19 +0000 (Wed, 20 Mar 2013)
Log Message:
-----------
MdeModulePkg: Fixed 'variable set but not used' build warning.

Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Feng Tian <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c

Modified: trunk/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
===================================================================
--- trunk/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c 2013-03-20 06:43:17 UTC 
(rev 14213)
+++ trunk/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c 2013-03-20 07:26:19 UTC 
(rev 14214)
@@ -1238,7 +1238,6 @@
   UINT8                   *ProcBuf;
   URB                     *Urb;
   UINT8                   SlotId;
-  EFI_STATUS              Status;
   EFI_TPL                 OldTpl;
 
   OldTpl = gBS->RaiseTPL (XHC_TPL);
@@ -1260,7 +1259,7 @@
     // 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 @@
   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 @@
     EvtRing->EventRingDequeue = EvtRing->EventRingSeg0;
   }
 
-  return Status;
+  return EFI_SUCCESS;
 }
 
 /**

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c      
2013-03-20 06:43:17 UTC (rev 14213)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/Expression.c      
2013-03-20 07:26:19 UTC (rev 14214)
@@ -1446,7 +1446,6 @@
   UINTN          Base;
   UINTN          Length;
   CHAR16         *SubString;
-  UINT8          *Buffer;
   UINT16         BufferLen;
 
   ZeroMem (Value, sizeof (Value));
@@ -1502,7 +1501,6 @@
 
     FreePool (String);
   } else {
-    Buffer    = Value[2].Buffer;
     BufferLen = Value[2].BufferLen;
     
     Result->Type = EFI_IFR_TYPE_BUFFER;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to