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>
This commit is contained in:
Dandan Bi 2017-10-19 15:34:53 +08:00 committed by Eric Dong
parent 2f909679b0
commit 71d047b483
1 changed files with 2 additions and 2 deletions

View File

@ -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)))
) {