]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModule/LegacyBios: Avoid explicit comparison for BOOLEAN
authorDandan Bi <dandan.bi@intel.com>
Thu, 19 Oct 2017 07:34:53 +0000 (15:34 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 24 Oct 2017 01:14:17 +0000 (09:14 +0800)
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>
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c

index e009999fbd922450e29505e96bd1142faf2f2e38..c6461f554705b869cfc522b122b7fbf6ad7e98c1 100644 (file)
@@ -806,7 +806,7 @@ EnableNullDetection (
 \r
   if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)\r
       ||\r
-      ((mEndOfDxe == TRUE)  &&\r
+      ((mEndOfDxe)  &&\r
        ((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))\r
         == (BIT7|BIT0)))\r
      ) {\r
@@ -856,7 +856,7 @@ DisableNullDetection (
 \r
   if (((PcdGet8 (PcdNullPointerDetectionPropertyMask) & BIT0) == 0)\r
       ||\r
-      ((mEndOfDxe == TRUE)  &&\r
+      ((mEndOfDxe)  &&\r
        ((PcdGet8 (PcdNullPointerDetectionPropertyMask) & (BIT7|BIT0))\r
         == (BIT7|BIT0)))\r
      ) {\r