From: Xin Li Date: Fri, 6 Mar 2026 23:12:53 +0000 (-0800) Subject: KVM: VMX: Remove unnecessary parentheses X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=577da677aa7cbc13040e4951170d39ec7663ad8a;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20260306231253.2177246-1-xin@zytor.com Signed-off-by: Sean Christopherson --- diff --git a/arch/x86/kvm/vmx/capabilities.h b/arch/x86/kvm/vmx/capabilities.h index 4e371c93ae168..56cacc06225ec 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)