You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
MinPlatformPkg/TestPointCheckLib: Remove unnecessary GetVariable2() call
The data buffer returned from the GetVariable2() call in TestPointCheckMemoryTypeInformation() is not actually used or freed. This change removes the unnecessary function call. Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Eric Dong <eric.dong@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Isaac Oram <isaac.w.oram@intel.com>
This commit is contained in:
committed by
Isaac Oram
parent
ea2a520c83
commit
60053f3077
@@ -108,7 +108,6 @@ TestPointCheckMemoryTypeInformation (
|
||||
EFI_HOB_GUID_TYPE *GuidHob;
|
||||
VOID *CurrentMemoryTypeInformation;
|
||||
VOID *PreviousMemoryTypeInformation;
|
||||
VOID *VariableMemoryTypeInformation;
|
||||
|
||||
DEBUG ((DEBUG_INFO, "==== TestPointCheckMemoryTypeInformation - Enter\n"));
|
||||
CurrentMemoryTypeInformation = NULL;
|
||||
@@ -127,13 +126,6 @@ TestPointCheckMemoryTypeInformation (
|
||||
goto Done;
|
||||
}
|
||||
|
||||
GetVariable2 (
|
||||
EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME,
|
||||
&gEfiMemoryTypeInformationGuid,
|
||||
&VariableMemoryTypeInformation,
|
||||
NULL
|
||||
);
|
||||
|
||||
if ((CurrentMemoryTypeInformation != NULL) && (PreviousMemoryTypeInformation != NULL)) {
|
||||
DumpMemoryTypeInfoSummary(CurrentMemoryTypeInformation, PreviousMemoryTypeInformation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user