UefiCpuPkg: PiSmmCpuDxeSmm: remove set but unused variables

Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
Laszlo Ersek
2016-03-18 20:56:04 +01:00
parent 16e93125b5
commit dc0a714314

View File

@@ -342,7 +342,6 @@ InitProtectedMemRange (
UINTN NumberOfSpliteRange; UINTN NumberOfSpliteRange;
EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap; EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap;
UINTN TotalSize; UINTN TotalSize;
EFI_STATUS Status;
EFI_PHYSICAL_ADDRESS ProtectBaseAddress; EFI_PHYSICAL_ADDRESS ProtectBaseAddress;
EFI_PHYSICAL_ADDRESS ProtectEndAddress; EFI_PHYSICAL_ADDRESS ProtectEndAddress;
EFI_PHYSICAL_ADDRESS Top2MBAlignedAddress; EFI_PHYSICAL_ADDRESS Top2MBAlignedAddress;
@@ -358,7 +357,7 @@ InitProtectedMemRange (
// //
// Get MMIO ranges from GCD and add them into protected memory ranges. // Get MMIO ranges from GCD and add them into protected memory ranges.
// //
Status = gDS->GetMemorySpaceMap ( gDS->GetMemorySpaceMap (
&NumberOfDescriptors, &NumberOfDescriptors,
&MemorySpaceMap &MemorySpaceMap
); );
@@ -776,12 +775,10 @@ InitSmmProfileCallBack (
IN EFI_HANDLE Handle IN EFI_HANDLE Handle
) )
{ {
EFI_STATUS Status;
// //
// Save to variable so that SMM profile data can be found. // Save to variable so that SMM profile data can be found.
// //
Status = gRT->SetVariable ( gRT->SetVariable (
SMM_PROFILE_NAME, SMM_PROFILE_NAME,
&gEfiCallerIdGuid, &gEfiCallerIdGuid,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,
@@ -1311,7 +1308,6 @@ SmmProfilePFHandler (
SMM_PROFILE_ENTRY *SmmProfileEntry; SMM_PROFILE_ENTRY *SmmProfileEntry;
UINT64 SmiCommand; UINT64 SmiCommand;
EFI_STATUS Status; EFI_STATUS Status;
UINTN SwSmiCpuIndex;
UINT8 SoftSmiValue; UINT8 SoftSmiValue;
EFI_SMM_SAVE_STATE_IO_INFO IoInfo; EFI_SMM_SAVE_STATE_IO_INFO IoInfo;
@@ -1354,10 +1350,6 @@ SmmProfilePFHandler (
} }
} }
//
// Try to find which CPU trigger SWSMI
//
SwSmiCpuIndex = 0;
// //
// Indicate it is not software SMI // Indicate it is not software SMI
// //
@@ -1368,10 +1360,6 @@ SmmProfilePFHandler (
continue; continue;
} }
if (IoInfo.IoPort == mSmiCommandPort) { if (IoInfo.IoPort == mSmiCommandPort) {
//
// Great! Find it.
//
SwSmiCpuIndex = Index;
// //
// A software SMI triggered by SMI command port has been found, get SmiCommand from SMI command port. // A software SMI triggered by SMI command port has been found, get SmiCommand from SMI command port.
// //