summaryrefslogtreecommitdiffstats
path: root/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c')
-rw-r--r--EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
index d2417234ab..5874902e2e 100644
--- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
+++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
@@ -214,7 +214,6 @@ StartGauge (
UINTN GaugeDataSize;
UINTN OldGaugeDataSize;
GAUGE_DATA_HEADER *OldGaugeData;
- EFI_STATUS Status;
UINT32 Index;
Index = mGaugeData->NumberOfEntries;
@@ -230,7 +229,7 @@ StartGauge (
mGaugeData = AllocateZeroPool (GaugeDataSize);
if (mGaugeData == NULL) {
- return EFI_OUT_OF_MEMORY;
+ return EFI_OUT_OF_RESOURCES;
}
//
// Initialize new data arry and migrate old data one.
@@ -425,7 +424,6 @@ DxeCorePerformanceLibConstructor (
//
// Install the protocol interfaces.
//
- Handle = NULL;
Status = gBS->InstallProtocolInterface (
&mHandle,
&gPerformanceProtocolGuid,