Revision: 14796
          http://sourceforge.net/p/edk2/code/14796
Author:   oliviermartin
Date:     2013-10-22 08:49:50 +0000 (Tue, 22 Oct 2013)
Log Message:
-----------
EdkCompatibilityPkg: Fixed EDK Shell build

Fixed:
- Removed unused variables
- Function does not return value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Perf.c
    trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/LinkedList.c
    
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c

Modified: 
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Perf.c
===================================================================
--- trunk/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Perf.c   
2013-10-22 01:14:54 UTC (rev 14795)
+++ trunk/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Perf.c   
2013-10-22 08:49:50 UTC (rev 14796)
@@ -515,12 +515,10 @@
 
 --*/
 {
-  EFI_PERFORMANCE_INSTANCE  *PerfInstance;
   EFI_PERF_DATA_LIST        *Node;
   UINT64                    TimerValue;
 
   TimerValue    = 0;
-  PerfInstance  = EFI_PERFORMANCE_FROM_THIS (This);
 
   Node          = GetDataNode (Handle, Token, Host, NULL, NULL);
   if (!Node) {
@@ -573,11 +571,8 @@
 
 --*/
 {
-  EFI_PERFORMANCE_INSTANCE  *PerfInstance;
   EFI_PERF_DATA_LIST        *Node;
 
-  PerfInstance  = EFI_PERFORMANCE_FROM_THIS (This);
-
   Node          = GetDataNode (Handle, Token, Host, NULL, PrevGauge);
   if (Node != NULL) {
     return &(Node->GaugeData);

Modified: 
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/LinkedList.c
===================================================================
--- trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/LinkedList.c 
2013-10-22 01:14:54 UTC (rev 14795)
+++ trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/LinkedList.c 
2013-10-22 08:49:50 UTC (rev 14796)
@@ -212,14 +212,12 @@
 
 --*/
 {
-  EFI_LIST_ENTRY *Entry1ForwardLink;
   EFI_LIST_ENTRY *Entry1BackLink;
   EFI_LIST_ENTRY *Entry2ForwardLink;
   EFI_LIST_ENTRY *Entry2BackLink;
 
   Entry2ForwardLink           = Entry2->ForwardLink;          
   Entry2BackLink              = Entry2->BackLink;                
-  Entry1ForwardLink           = Entry1->ForwardLink;          
   Entry1BackLink              = Entry1->BackLink;                
   Entry2BackLink->ForwardLink = Entry2ForwardLink;    
   Entry2ForwardLink->BackLink = Entry2BackLink;       

Modified: 
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c
===================================================================
--- 
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c
   2013-10-22 01:14:54 UTC (rev 14795)
+++ 
trunk/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ReportStatusCode.c
   2013-10-22 08:49:50 UTC (rev 14796)
@@ -339,6 +339,6 @@
 #else
   *Marker = (VA_LIST) (DebugInfo + 1);
   *Format = (CHAR8 *)(((UINT64 *)*Marker) + 12);
+  return TRUE;
 #endif
-  return TRUE;
 }

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to