diff options
author | Alex Williamson | 2012-10-02 21:22:01 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2012-10-29 16:59:06 +0100 |
commit | 4774d7b258e0c4a6595a7b0bc6960c1751365bbf (patch) | |
tree | 2542c4dde588314638a44d85407df156cc885230 /hw | |
parent | pci: Helper function for testing if an INTx route changed (diff) | |
download | qemu-4774d7b258e0c4a6595a7b0bc6960c1751365bbf.tar.gz qemu-4774d7b258e0c4a6595a7b0bc6960c1751365bbf.tar.xz qemu-4774d7b258e0c4a6595a7b0bc6960c1751365bbf.zip |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/kvm/pci-assign.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/kvm/pci-assign.c b/hw/kvm/pci-assign.c index bfffbab1b3..ab01205666 100644 --- a/hw/kvm/pci-assign.c +++ b/hw/kvm/pci-assign.c @@ -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; } |