Skip to content

Commit

Permalink
AlderlakeSiliconPkg: Remove unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: Nate DeSimone <[email protected]>
  • Loading branch information
nate-desimone committed Sep 24, 2024
1 parent f9ea479 commit 7062f7b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <IndustryStandard/Pci22.h>
#include <Register/IgdRegs.h>


STATIC CONST CHAR8 mAdlCpuFamilyString[] = "AlderLake";
typedef struct {
UINT32 CPUID;
UINT8 CpuSku;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ PchSmmCoreDispatcher (

BOOLEAN ContextsMatch;
BOOLEAN EosSet;
BOOLEAN SxChildWasDispatched;

DATABASE_RECORD *RecordInDb;
LIST_ENTRY *LinkInDb;
Expand Down Expand Up @@ -718,7 +717,6 @@ PchSmmCoreDispatcher (
EscapeCount = 3;
ContextsMatch = FALSE;
EosSet = FALSE;
SxChildWasDispatched = FALSE;
Status = EFI_SUCCESS;

//
Expand Down Expand Up @@ -769,13 +767,6 @@ PchSmmCoreDispatcher (
EosSet = PchSmmSetAndCheckEos ();
}
} else {
//
// We found a source. If this is a sleep type, we have to go to
// appropriate sleep state anyway.No matter there is sleep child or not
//
if (RecordInDb->ProtocolType == SxType) {
SxChildWasDispatched = TRUE;
}
//
// "cache" the source description and don't query I/O anymore
//
Expand Down Expand Up @@ -855,9 +846,6 @@ PchSmmCoreDispatcher (
PERF_START_EX (NULL, "SmmFunction", NULL, AsmReadTsc (), RecordToExhaust->ProtocolType);
RecordToExhaust->Callback ((EFI_HANDLE) & RecordToExhaust->Link, &Context, CommBuffer, &CommBufferSize);
PERF_END_EX (NULL, "SmmFunction", NULL, AsmReadTsc (), RecordToExhaust->ProtocolType);
if (RecordToExhaust->ProtocolType == SxType) {
SxChildWasDispatched = TRUE;
}
} else {
ASSERT (FALSE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ PchGpiSmiUnRegister (
UINT32 GpiHostSwOwnRegAddress;
UINT32 GpiSmiStsRegAddress;
UINT32 Data32Or;
UINT32 Data32And;
BOOLEAN DisableGpiSmiSource;


Expand Down Expand Up @@ -232,7 +231,6 @@ PchGpiSmiUnRegister (
);

Data32Or = 1u << GpiSmiBitOffset;
Data32And = 0xFFFFFFFF;
MmioOr32 (GpiHostSwOwnRegAddress, Data32Or);
}

Expand Down

0 comments on commit 7062f7b

Please sign in to comment.