KVM: apic: short-circuit kvm_apic_accept_pic_intr() when pic intr is accepted
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 18 Jan 2020 02:50:37 +0000 (10:50 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:45 +0000 (19:59 +0100)
commit3ce4dc17e0c1e7280d53abeb85ce851a88868c63
tree3d5f354ad42add6e6933215c8b880eabdcfdc9e4
parent767b839afa5d62ba9cf859f4e90fef3d4a1780b5
KVM: apic: short-circuit kvm_apic_accept_pic_intr() when pic intr is accepted

Short-circuit kvm_apic_accept_pic_intr() when pic intr is accepted, there
is no need to proceed further. Also remove unnecessary var r.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c