FatPkg/FatPei: 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: Ray Ni <ray.ni@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Dandan Bi
2019-04-28 16:28:08 +08:00
committed by Liming Gao
parent 1b72fd5121
commit 8dc1f4ec0f
2 changed files with 1 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
/** @file /** @file
FAT recovery PEIM entry point, Ppi Functions and FAT Api functions. FAT recovery PEIM entry point, Ppi Functions and FAT Api functions.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -431,10 +431,6 @@ GetRecoveryCapsuleInfo (
return Status; return Status;
} }
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
CapsuleInstance = CapsuleInstance + 1;
}
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) { if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
return EFI_NOT_FOUND; return EFI_NOT_FOUND;
} }
@@ -559,10 +555,6 @@ LoadRecoveryCapsule (
return Status; return Status;
} }
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
CapsuleInstance = CapsuleInstance + 1;
}
if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) { if ((CapsuleInstance == 0) || (CapsuleInstance > NumberRecoveryCapsules)) {
return EFI_NOT_FOUND; return EFI_NOT_FOUND;
} }

View File

@@ -65,10 +65,6 @@
gEfiPeiVirtualBlockIo2PpiGuid ## SOMETIMES_CONSUMES PPI_NOTIFY gEfiPeiVirtualBlockIo2PpiGuid ## SOMETIMES_CONSUMES PPI_NOTIFY
gEfiPeiDeviceRecoveryModulePpiGuid ## SOMETIMES_PRODUCES gEfiPeiDeviceRecoveryModulePpiGuid ## SOMETIMES_PRODUCES
[FeaturePcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
[Pcd] [Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdRecoveryFileName ## CONSUMES