Message ID | 20200130161533.8180-2-peter.maydell@linaro.org |
---|---|
State | New |
Headers | show |
Series | [PULL,01/26] hw/core/or-irq: Fix incorrect assert forbidding num-lines == MAX_OR_LINES | expand |
diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index 4bbdbcb321b..d8f3754e967 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -58,7 +58,7 @@ static void or_irq_realize(DeviceState *dev, Error **errp) { qemu_or_irq *s = OR_IRQ(dev); - assert(s->num_lines < MAX_OR_LINES); + assert(s->num_lines <= MAX_OR_LINES); qdev_init_gpio_in(dev, or_irq_handler, s->num_lines); }