KVM: VMX: Remove unnecessary parentheses
PATCH v2 1/1 KVM: VMX: Remove unnecessary parentheses
From: Xin Li <[email protected]>
Drop redundant parentheses; the & operator has higher precedence than the return statement's implicit evaluation, making the grouping redundant.
Signed-off-by Xin Li <[email protected]>
---
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(-)
arch/x86/kvm/vmx/capabilities.h +1 -1
@@ -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
Signature · 1 line
2.53.0
Quoted 2 lines · Xin Li (Intel)
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