From 5f94a114f375ba86106686bbd567fbdb4e6582b4 Mon Sep 17 00:00:00 2001 From: Raymond Diaz Date: Mon, 5 Aug 2024 10:32:29 -0700 Subject: [PATCH] Addressed review comments. Removed unused type variable --- .../Library/AdvancedLoggerLib/PeiCore/AdvancedLoggerLib.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/AdvLoggerPkg/Library/AdvancedLoggerLib/PeiCore/AdvancedLoggerLib.c b/AdvLoggerPkg/Library/AdvancedLoggerLib/PeiCore/AdvancedLoggerLib.c index 60d57203c7..b76006b83f 100644 --- a/AdvLoggerPkg/Library/AdvancedLoggerLib/PeiCore/AdvancedLoggerLib.c +++ b/AdvLoggerPkg/Library/AdvancedLoggerLib/PeiCore/AdvancedLoggerLib.c @@ -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 @@ -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 );