isa: always use provided ISA bus in isa_bus_irqs()

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Hervé Poussineau 2011-12-15 22:10:00 +01:00 committed by Anthony Liguori
parent 75782268d6
commit d3c68e4f45

View File

@ -53,8 +53,10 @@ ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space_io)
void isa_bus_irqs(ISABus *bus, qemu_irq *irqs)
{
assert(!bus || bus == isabus);
isabus->irqs = irqs;
if (!bus) {
hw_error("Can't set isa irqs with no isa bus present.");
}
bus->irqs = irqs;
}
/*