Re: [Qemu-devel] [PATCH] ioapic: remove useless lower bounds check

2018-07-04 Thread Peter Xu
On Wed, Jul 04, 2018 at 02:04:12PM +0200, Paolo Bonzini wrote: > The vector cannot be negative. Coverity now reports this because it sees an > array access before the check, in ioapic_stat_update_irq. > > Signed-off-by: Paolo Bonzini Reviewed-by: Peter Xu Thanks! -- Peter Xu

[Qemu-devel] [PATCH] ioapic: remove useless lower bounds check

2018-07-04 Thread Paolo Bonzini
The vector cannot be negative. Coverity now reports this because it sees an array access before the check, in ioapic_stat_update_irq. Signed-off-by: Paolo Bonzini --- hw/intc/ioapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index