X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkModulePkg%2FLibrary%2FDxeCorePerformanceLib%2FDxeCorePerformanceLib.c;h=5874902e2e37c0f6521a6bc3bb08a06887ca4bd7;hb=5b1b9d8bf4565b194ac16294c58993c62bcae315;hp=d2417234abaefbffcd58981845b1104b18ec7171;hpb=9c091616cd866a2e737506c138fa781873f5badf;p=mirror_edk2.git 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,