]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: VMX: Remove unnecessary parentheses
authorXin Li <xin@zytor.com>
Fri, 6 Mar 2026 23:12:53 +0000 (15:12 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 12 Mar 2026 16:05:56 +0000 (09:05 -0700)
Drop redundant parentheses; the & operator has higher precedence than the
return statement's implicit evaluation, making the grouping redundant.

Signed-off-by: Xin Li <xin@zytor.com>
Link: https://patch.msgid.link/20260306231253.2177246-1-xin@zytor.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/capabilities.h

index 4e371c93ae168034b6e0ed073a535576bdd15534..56cacc06225ecc573fe040292080813a4b9231c2 100644 (file)
@@ -107,7 +107,7 @@ static inline bool cpu_has_load_perf_global_ctrl(void)
 
 static inline bool cpu_has_load_cet_ctrl(void)
 {
-       return (vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_CET_STATE);
+       return vmcs_config.vmentry_ctrl & VM_ENTRY_LOAD_CET_STATE;
 }
 
 static inline bool cpu_has_save_perf_global_ctrl(void)