X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=QuarkPlatformPkg%2FPlatform%2FPei%2FPlatformInit%2FGeneric%2FRecovery.c;fp=QuarkPlatformPkg%2FPlatform%2FPei%2FPlatformInit%2FGeneric%2FRecovery.c;h=67299a68b7d333959477afcf7f20a7fa0bcb4c69;hp=f6a076f757ecdfd32c95a0bf6fce824b8c30f039;hb=1df91bb772a1cf6f2709063ec120e659b2eb49fc;hpb=059cf575eb6c64f6562c3a389dea0444a162bc6f diff --git a/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c b/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c index f6a076f757..67299a68b7 100644 --- a/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c +++ b/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c @@ -2,7 +2,7 @@ Install Platform EFI_PEI_RECOVERY_MODULE_PPI and Implementation of EFI_PEI_LOAD_RECOVERY_CAPSULE service. -Copyright (c) 2013-2016 Intel Corporation. +Copyright (c) 2013-2019 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent @@ -197,25 +197,13 @@ Returns: // if (ProviderAvailable) { RecoveryCapsuleSize = 0; - if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) { - Status = DeviceRecoveryModule->GetRecoveryCapsuleInfo ( - PeiServices, - DeviceRecoveryModule, - 0, - &RecoveryCapsuleSize, - &DeviceId - ); - } else { - Status = DeviceRecoveryModule->GetRecoveryCapsuleInfo ( - PeiServices, - DeviceRecoveryModule, - 1, - &RecoveryCapsuleSize, - &DeviceId - ); - - - } + Status = DeviceRecoveryModule->GetRecoveryCapsuleInfo ( + PeiServices, + DeviceRecoveryModule, + 1, + &RecoveryCapsuleSize, + &DeviceId + ); if (EFI_ERROR (Status)) { return Status; @@ -239,22 +227,12 @@ Returns: ASSERT (Address); Buffer = (UINT8 *) (UINTN) Address; - if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) { - Status = DeviceRecoveryModule->LoadRecoveryCapsule ( - PeiServices, - DeviceRecoveryModule, - 0, - Buffer - ); - } else { - Status = DeviceRecoveryModule->LoadRecoveryCapsule ( - PeiServices, - DeviceRecoveryModule, - 1, - Buffer - ); - - } + Status = DeviceRecoveryModule->LoadRecoveryCapsule ( + PeiServices, + DeviceRecoveryModule, + 1, + Buffer + ); DEBUG ((EFI_D_INFO | EFI_D_LOAD, "LoadRecoveryCapsule Returns: %r\n", Status));