summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <xin@zytor.com>2026-03-07 02:12:53 +0300
committerSean Christopherson <seanjc@google.com>2026-03-12 19:05:56 +0300
commit577da677aa7cbc13040e4951170d39ec7663ad8a (patch)
tree11f407cf8f43f11f62e4fc38fb61239809c8e91a
parent192f777b3af084d2073037b13ed0c2457e563d39 (diff)
downloadlinux-577da677aa7cbc13040e4951170d39ec7663ad8a.tar.xz
KVM: VMX: Remove unnecessary parentheses
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>
-rw-r--r--arch/x86/kvm/vmx/capabilities.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/capabilities.h b/arch/x86/kvm/vmx/capabilities.h
index 4e371c93ae16..56cacc06225e 100644
--- a/arch/x86/kvm/vmx/capabilities.h
+++ b/arch/x86/kvm/vmx/capabilities.h
@@ -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)