* [PATCH v2] KVM: VMX: Remove unnecessary parentheses
@ 2026-03-06 23:12 Xin Li (Intel)
2026-04-03 15:14 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Xin Li (Intel) @ 2026-03-06 23:12 UTC (permalink / raw)
To: kvm, linux-kernel
Cc: seanjc, pbonzini, tglx, mingo, bp, dave.hansen, x86, hpa, xin
From: Xin Li <xin@zytor.com>
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>
---
Changes in v2:
*) Don't remove parentheses in multiple checks. (Bill Xiang)
---
arch/x86/kvm/vmx/capabilities.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
base-commit: 5128b972fb2801ad9aca54d990a75611ab5283a9
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] KVM: VMX: Remove unnecessary parentheses
2026-03-06 23:12 [PATCH v2] KVM: VMX: Remove unnecessary parentheses Xin Li (Intel)
@ 2026-04-03 15:14 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2026-04-03 15:14 UTC (permalink / raw)
To: Sean Christopherson, kvm, linux-kernel, Xin Li (Intel)
Cc: pbonzini, mingo, bp, dave.hansen, x86, hpa, Thomas Gleixner
On Fri, 06 Mar 2026 15:12:53 -0800, Xin Li (Intel) wrote:
> Drop redundant parentheses; the & operator has higher precedence than the
> return statement's implicit evaluation, making the grouping redundant.
Applied to kvm-x86 vmx, thanks!
[1/1] KVM: VMX: Remove unnecessary parentheses
https://github.com/kvm-x86/linux/commit/577da677aa7c
--
https://github.com/kvm-x86/linux/tree/next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-03 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-06 23:12 [PATCH v2] KVM: VMX: Remove unnecessary parentheses Xin Li (Intel)
2026-04-03 15:14 ` Sean Christopherson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®