Skip to content

Commit

Permalink
Addressed review comments. Removed unused type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond-MS committed Aug 5, 2024
1 parent 1c5a7f9 commit 1da449b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ AdvancedLoggerGetLoggerInfo (
UINTN Pages;
CONST EFI_PEI_SERVICES **PeiServices;
EFI_STATUS Status;
EFI_MEMORY_TYPE Type;
ADVANCED_LOGGER_MESSAGE_ENTRY_V2 *LogEntry;

// Try to do the minimum work at the start of this function as this
Expand Down Expand Up @@ -554,13 +553,11 @@ AdvancedLoggerGetLoggerInfo (
//

Pages = FixedPcdGet32 (PcdAdvancedLoggerPreMemPages);
// This is to avoid the interim buffer being allocated to consume 64KB on ARM64 platforms.
Type = EfiBootServicesData;

BufferSize = EFI_PAGES_TO_SIZE (Pages);

Status = PeiServicesAllocatePages (
Type,
EfiBootServicesData,
Pages,
&NewLoggerInfo
);
Expand Down

0 comments on commit 1da449b

Please sign in to comment.