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 <olivier.martin@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14796 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin 2013-10-22 08:49:50 +00:00 committed by oliviermartin
parent 2c5a8aed24
commit 6cbbfa06d7
3 changed files with 1 additions and 8 deletions

View File

@ -515,12 +515,10 @@ Returns:
--*/
{
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 @@ Returns:
--*/
{
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);

View File

@ -212,14 +212,12 @@ Returns:
--*/
{
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;

View File

@ -339,6 +339,6 @@ Returns:
#else
*Marker = (VA_LIST) (DebugInfo + 1);
*Format = (CHAR8 *)(((UINT64 *)*Marker) + 12);
#endif
return TRUE;
#endif
}