Skip to content

Commit db5a95e

Browse files
Mao Wenanbonzini
authored andcommitted
KVM: x86: remove set but not used variable 'called'
Fixes gcc '-Wunused-but-set-variable' warning: arch/x86/kvm/x86.c: In function kvm_make_scan_ioapic_request_mask: arch/x86/kvm/x86.c:7911:7: warning: variable called set but not used [-Wunused-but-set-variable] It is not used since commit 7ee30bc ("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs") Signed-off-by: Mao Wenan <[email protected]> Fixes: 7ee30bc ("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs") Signed-off-by: Paolo Bonzini <[email protected]>
1 parent b11494b commit db5a95e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/x86/kvm/x86.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7900,12 +7900,11 @@ void kvm_make_scan_ioapic_request_mask(struct kvm *kvm,
79007900
unsigned long *vcpu_bitmap)
79017901
{
79027902
cpumask_var_t cpus;
7903-
bool called;
79047903

79057904
zalloc_cpumask_var(&cpus, GFP_ATOMIC);
79067905

7907-
called = kvm_make_vcpus_request_mask(kvm, KVM_REQ_SCAN_IOAPIC,
7908-
vcpu_bitmap, cpus);
7906+
kvm_make_vcpus_request_mask(kvm, KVM_REQ_SCAN_IOAPIC,
7907+
vcpu_bitmap, cpus);
79097908

79107909
free_cpumask_var(cpus);
79117910
}

0 commit comments

Comments
 (0)