From 71d047b483b9a86662bb32ce13e931ba799a7527 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Thu, 19 Oct 2017 15:34:53 +0800 Subject: IntelFrameworkModule/LegacyBios: Avoid explicit comparison for BOOLEAN Cc: Jian J Wang Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi Reviewed-by: Jian J Wang --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c | 4 ++-- 1 file 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))) ) { -- cgit v1.2.3