]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuCommonFeaturesLib: Fix coding style issue
authorDandan Bi <dandan.bi@intel.com>
Wed, 7 Mar 2018 05:20:29 +0000 (13:20 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 8 Mar 2018 00:58:48 +0000 (08:58 +0800)
Boolean values do not need to use explicit comparisons
to TRUE or FALSE.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c

index cc64dbbf0a1f2d3e6bc06d642bc353a77d133fd6..27ca911c86fab711955fd2ba7cab9dad683b0b9a 100644 (file)
@@ -140,7 +140,7 @@ McaInitialize (
   MSR_IA32_MCG_CAP_REGISTER  McgCap;\r
   UINT32                     BankIndex;\r
 \r
-  if (State == TRUE) {\r
+  if (State) {\r
     McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP);\r
     for (BankIndex = 0; BankIndex < (UINT32) McgCap.Bits.Count; BankIndex++) {\r
       CPU_REGISTER_TABLE_WRITE64 (\r