mirror of https://github.com/acidanthera/audk.git
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:
parent
2f909679b0
commit
71d047b483
|
@ -806,7 +806,7 @@ EnableNullDetection (
|
||||||
|
|
||||||
if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
|
if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
|
||||||
||
|
||
|
||||||
((mEndOfDxe == TRUE) &&
|
((mEndOfDxe) &&
|
||||||
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
|
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
|
||||||
== (BIT7|BIT0)))
|
== (BIT7|BIT0)))
|
||||||
) {
|
) {
|
||||||
|
@ -856,7 +856,7 @@ DisableNullDetection (
|
||||||
|
|
||||||
if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
|
if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)
|
||||||
||
|
||
|
||||||
((mEndOfDxe == TRUE) &&
|
((mEndOfDxe) &&
|
||||||
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
|
((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))
|
||||||
== (BIT7|BIT0)))
|
== (BIT7|BIT0)))
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue