public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4]  x86/kvm: remove a redundant variable
@ 2022-02-18 11:07 Peng Hao
  2022-02-18 16:10 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Hao @ 2022-02-18 11:07 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm, linux-kernel

variable 'cpu' is defined repeatedly.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
---
 arch/x86/kvm/vmx/vmx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index ba66c171d951..6101c2980a9c 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -7931,7 +7931,6 @@ static int __init vmx_init(void)
 	    ms_hyperv.hints & HV_X64_ENLIGHTENED_VMCS_RECOMMENDED &&
 	    (ms_hyperv.nested_features & HV_X64_ENLIGHTENED_VMCS_VERSION) >=
 	    KVM_EVMCS_VERSION) {
-		int cpu;
 
 		/* Check that we have assist pages on all online CPUs */
 		for_each_online_cpu(cpu) {
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-18 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-18 11:07 [PATCH 1/4] x86/kvm: remove a redundant variable Peng Hao
2022-02-18 16:10 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox