KVM: PPC: BookE: No duplicate request != 0 check
authorAlexander Graf <agraf@suse.de>
Fri, 10 Aug 2012 10:31:12 +0000 (12:31 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 5 Oct 2012 21:38:42 +0000 (23:38 +0200)
We only call kvmppc_check_requests() when vcpu->requests != 0, so drop
the redundant check in the function itself

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c

index 00bcc57428c76caeab2f392825ef4afb7359ed9d..683cbd686d01456cc9b8259734e2f1bdb2300624 100644 (file)
@@ -457,16 +457,14 @@ int kvmppc_core_prepare_to_enter(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))
-                       update_timer_ints(vcpu);
+       if (kvm_check_request(KVM_REQ_PENDING_TIMER, vcpu))
+               update_timer_ints(vcpu);
 #if defined(CONFIG_KVM_E500V2) || defined(CONFIG_KVM_E500MC)
-               if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
-                       kvmppc_core_flush_tlb(vcpu);
+       if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu))
+               kvmppc_core_flush_tlb(vcpu);
 #endif
-       }
 }
 
 /*