mirror of https://github.com/xemu-project/xemu.git
pci-assign: Use pci_intx_route_changed()
Replace open coded version Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
d6e65d54f0
commit
4774d7b258
|
@ -882,8 +882,7 @@ static int assign_intx(AssignedDevice *dev)
|
|||
intx_route = pci_device_route_intx_to_irq(&dev->dev, dev->intpin);
|
||||
assert(intx_route.mode != PCI_INTX_INVERTED);
|
||||
|
||||
if (dev->intx_route.mode == intx_route.mode &&
|
||||
dev->intx_route.irq == intx_route.irq) {
|
||||
if (!pci_intx_route_changed(&dev->intx_route, &intx_route)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue