summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2018-03-07 13:20:29 +0800
committerLiming Gao <liming.gao@intel.com>2018-03-08 08:58:48 +0800
commite01d92d43f019d6704e4998d9798313901181cb0 (patch)
tree1ff165705ada2798a399050cf897cda69282e3aa /UefiCpuPkg
parentf7d05bddd7e7a1f094a549b5da8d0141d4060c25 (diff)
downloadedk2-e01d92d43f019d6704e4998d9798313901181cb0.zip
edk2-e01d92d43f019d6704e4998d9798313901181cb0.tar.gz
edk2-e01d92d43f019d6704e4998d9798313901181cb0.tar.bz2
UefiCpuPkg/CpuCommonFeaturesLib: Fix coding style issue
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>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
index cc64dbb..27ca911 100644
--- a/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
+++ b/UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
@@ -140,7 +140,7 @@ McaInitialize (
MSR_IA32_MCG_CAP_REGISTER McgCap;
UINT32 BankIndex;
- if (State == TRUE) {
+ if (State) {
McgCap.Uint64 = AsmReadMsr64 (MSR_IA32_MCG_CAP);
for (BankIndex = 0; BankIndex < (UINT32) McgCap.Bits.Count; BankIndex++) {
CPU_REGISTER_TABLE_WRITE64 (