summaryrefslogtreecommitdiffstats
path: root/IntelFsp2WrapperPkg/FspsWrapperPeim
diff options
context:
space:
mode:
authorChasel, Chiu <chasel.chiu@intel.com>2018-11-22 10:51:21 +0800
committerChasel, Chiu <chasel.chiu@intel.com>2018-11-26 11:40:38 +0800
commite8f40b770f5eeb1031a56fcab9afc9c12a4ecafa (patch)
treeefde6de2a5202b59b6292814516afb9bb05ad792 /IntelFsp2WrapperPkg/FspsWrapperPeim
parent2098de6279033a56d27539b393e2c29cd9eb718f (diff)
downloadedk2-e8f40b770f5eeb1031a56fcab9afc9c12a4ecafa.tar.gz
edk2-e8f40b770f5eeb1031a56fcab9afc9c12a4ecafa.tar.bz2
edk2-e8f40b770f5eeb1031a56fcab9afc9c12a4ecafa.zip
IntelFsp2WrapperPkg: Fix constant if statements issue
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1351 Internal code quality scanning found 2 constant if statements related to FixedPcdGet8 () usage. Since the PCD can be PatchableInModule too, it should be changed to PcdGet8 () to fix this issue. Test: Verified on internal platform and booted successfully. Cc: Jiewen Yao <Jiewen.yao@intel.com> Cc: Desimone Nathaniel L <nathaniel.l.desimone@intel.com> Cc: Wu Hao A <hao.a.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'IntelFsp2WrapperPkg/FspsWrapperPeim')
-rw-r--r--IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c
index 87dd61e5c5..d748b21f7c 100644
--- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c
+++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c
@@ -349,7 +349,7 @@ FspsWrapperPeimEntryPoint (
{
DEBUG ((DEBUG_INFO, "FspsWrapperPeimEntryPoint\n"));
- if (FixedPcdGet8 (PcdFspModeSelection) == 1) {
+ if (PcdGet8 (PcdFspModeSelection) == 1) {
FspsWrapperInit ();
} else {
PeiServicesInstallFvInfoPpi (