Skip to content

Commit

Permalink
UefiCpuPkg/CpuDxe: Eliminate the unused variable.
Browse files Browse the repository at this point in the history
This change does not introduce any functional modifications.

Remove the unused mValidMtrrAddressMask and mValidMtrrBitsMask.

Reviewed-by: Ray Ni <[email protected]>
Signed-off-by: Yuanhao Xie <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Rahul Kumar <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Ray Ni <[email protected]>
  • Loading branch information
xieyuanh authored and mergify[bot] committed Oct 12, 2023
1 parent eebd446 commit 326b9e1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions UefiCpuPkg/CpuDxe/CpuDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
//
// Global Variables
//
BOOLEAN InterruptState = FALSE;
EFI_HANDLE mCpuHandle = NULL;
BOOLEAN mIsFlushingGCD;
BOOLEAN mIsAllocatingPageTable = FALSE;
UINT64 mValidMtrrAddressMask;
UINT64 mValidMtrrBitsMask;
UINT64 mTimerPeriod = 0;
UINT32 mCpuTargetCState = 0;
EFI_CPU_ARCH_PROTOCOL gCpu = {
BOOLEAN InterruptState = FALSE;
EFI_HANDLE mCpuHandle = NULL;
BOOLEAN mIsFlushingGCD;
BOOLEAN mIsAllocatingPageTable = FALSE;
UINT64 mTimerPeriod = 0;

EFI_CPU_ARCH_PROTOCOL gCpu = {
CpuFlushCpuDataCache,
CpuEnableInterrupt,
CpuDisableInterrupt,
Expand Down

0 comments on commit 326b9e1

Please sign in to comment.