Commit 2d8185d4 authored by Alexander Graf's avatar Alexander Graf

KVM: PPC: BookE: No duplicate request != 0 check

We only call kvmppc_check_requests() when vcpu->requests != 0, so drop
the redundant check in the function itself
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 6346046c
...@@ -457,7 +457,6 @@ int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu) ...@@ -457,7 +457,6 @@ int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu)
static void kvmppc_check_requests(struct kvm_vcpu *vcpu) static void kvmppc_check_requests(struct kvm_vcpu *vcpu)
{ {
if (vcpu->requests) {
trace_kvm_check_requests(vcpu); trace_kvm_check_requests(vcpu);
if (kvm_check_request(KVM_REQ_PENDING_TIMER, vcpu)) if (kvm_check_request(KVM_REQ_PENDING_TIMER, vcpu))
...@@ -466,7 +465,6 @@ static void kvmppc_check_requests(struct kvm_vcpu *vcpu) ...@@ -466,7 +465,6 @@ static void kvmppc_check_requests(struct kvm_vcpu *vcpu)
if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu)) if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
kvmppc_core_flush_tlb(vcpu); kvmppc_core_flush_tlb(vcpu);
#endif #endif
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment