Skip to content

Commit 999eabc

Browse files
MiaoheLinbonzini
authored andcommitted
KVM: apic: remove unused function apic_lvt_vector()
The function apic_lvt_vector() is unused now, remove it. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent d71f5e0 commit 999eabc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/x86/kvm/lapic.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,6 @@ static inline int apic_lvt_enabled(struct kvm_lapic *apic, int lvt_type)
294294
return !(kvm_lapic_get_reg(apic, lvt_type) & APIC_LVT_MASKED);
295295
}
296296

297-
static inline int apic_lvt_vector(struct kvm_lapic *apic, int lvt_type)
298-
{
299-
return kvm_lapic_get_reg(apic, lvt_type) & APIC_VECTOR_MASK;
300-
}
301-
302297
static inline int apic_lvtt_oneshot(struct kvm_lapic *apic)
303298
{
304299
return apic->lapic_timer.timer_mode == APIC_LVT_TIMER_ONESHOT;

0 commit comments

Comments
 (0)