Skip to content

Commit

Permalink
pci-assign: Use pci_intx_route_changed()
Browse files Browse the repository at this point in the history
Replace open coded version

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
awilliam authored and mstsirkin committed Oct 29, 2012
1 parent d6e65d5 commit 4774d7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hw/kvm/pci-assign.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4774d7b

Please sign in to comment.