diff options
| author | Mao Wenan <maowenan@huawei.com> | 2019-11-19 11:06:40 +0800 | 
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-11-21 12:03:49 +0100 | 
| commit | db5a95ec166f3fd3eecbd07ebdf56986a3e9f43f (patch) | |
| tree | d04f42c6eea470ef38931813b688b2b866c6fcea | |
| parent | b11494bcabba7383c9db65132f6f73d64fb1407d (diff) | |
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 7ee30bc132c6 ("KVM: x86: deliver KVM
IOAPIC scan request to target vCPUs")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Fixes: 7ee30bc132c6 ("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | arch/x86/kvm/x86.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index c814c226d02e..a256e09f321a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7900,12 +7900,11 @@ void kvm_make_scan_ioapic_request_mask(struct kvm *kvm,  				       unsigned long *vcpu_bitmap)  {  	cpumask_var_t cpus; -	bool called;  	zalloc_cpumask_var(&cpus, GFP_ATOMIC); -	called = kvm_make_vcpus_request_mask(kvm, KVM_REQ_SCAN_IOAPIC, -					     vcpu_bitmap, cpus); +	kvm_make_vcpus_request_mask(kvm, KVM_REQ_SCAN_IOAPIC, +				    vcpu_bitmap, cpus);  	free_cpumask_var(cpus);  } | 
