ioapic: remove useless lower bounds check
commit960a479f7f94bb615991d41b8c5ff4e3c7d0088d
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Jul 2018 12:03:10 +0000 (4 14:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jul 2018 16:39:19 +0000 (6 18:39 +0200)
tree7f4a7274909d5fc412a65fb1dbfe501f76695087
parentea3d77c889cfa8c450da8a716c2bfd6aaea0adb2
ioapic: remove useless lower bounds check

The vector cannot be negative.  Coverity now reports this because it sees an
array access before the check, in ioapic_stat_update_irq.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/intc/ioapic.c