diff options
author | Dandan Bi <dandan.bi@intel.com> | 2017-10-19 15:34:53 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2017-10-24 09:14:17 +0800 |
commit | 71d047b483b9a86662bb32ce13e931ba799a7527 (patch) | |
tree | 66836e9367533e9788c091a9ce34ef4209b1d44c | |
parent | 2f909679b01702bef49087304712b0391ce8fe02 (diff) | |
download | edk2-71d047b483b9a86662bb32ce13e931ba799a7527.tar.gz edk2-71d047b483b9a86662bb32ce13e931ba799a7527.tar.bz2 edk2-71d047b483b9a86662bb32ce13e931ba799a7527.zip |
IntelFrameworkModule/LegacyBios: Avoid explicit comparison for BOOLEAN
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c index e009999fbd..c6461f5547 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c @@ -806,7 +806,7 @@ EnableNullDetection ( if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
||
- ((mEndOfDxe == TRUE) &&
+ ((mEndOfDxe) &&
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
== (BIT7|BIT0)))
) {
@@ -856,7 +856,7 @@ DisableNullDetection ( if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
||
- ((mEndOfDxe == TRUE) &&
+ ((mEndOfDxe) &&
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
== (BIT7|BIT0)))
) {
|