From 2e217e402215c1bb2493c379bbc39dca09a8c9cc Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Sun, 28 Apr 2019 21:36:03 +0800 Subject: MdeModulePkg/CdExpress: Remove PcdFrameworkCompatibilitySupport usage REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1464 Currently Framework compatibility is not needed and PcdFrameworkCompatibilitySupport will be removed from edk2. So remove the usage of this PCD firstly. Cc: Hao Wu Cc: Liming Gao Signed-off-by: Dandan Bi Reviewed-by: Hao Wu --- MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf | 5 +---- MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.c | 10 +--------- 2 files changed, 2 insertions(+), 13 deletions(-) (limited to 'MdeModulePkg/Universal') diff --git a/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf b/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf index 11ab49b..184036b 100644 --- a/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf +++ b/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf @@ -5,7 +5,7 @@ # finds whether there is Recovery data in the device. If it finds recovery # data, it will install Device Recovery Module PPI. # -# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -58,9 +58,6 @@ gEfiPeiVirtualBlockIo2PpiGuid gEfiPeiDeviceRecoveryModulePpiGuid ## PRODUCES -[FeaturePcd] - gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES - [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName ## CONSUMES diff --git a/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.c b/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.c index b029c54..fd34f07 100644 --- a/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.c +++ b/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.c @@ -1,7 +1,7 @@ /** @file Source file for CD recovery PEIM -Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -587,10 +587,6 @@ GetRecoveryCapsuleInfo ( return Status; } - if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) { - CapsuleInstance = CapsuleInstance + 1; - } - if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) { return EFI_NOT_FOUND; } @@ -647,10 +643,6 @@ LoadRecoveryCapsule ( return Status; } - if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) { - CapsuleInstance = CapsuleInstance + 1; - } - if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) { return EFI_NOT_FOUND; } -- cgit v1.1