projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e65d5
)
pci-assign: Use pci_intx_route_changed()
author
Alex Williamson
<alex.williamson@redhat.com>
Tue, 2 Oct 2012 19:22:01 +0000
(13:22 -0600)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 29 Oct 2012 15:59:06 +0000
(17:59 +0200)
Replace open coded version
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/kvm/pci-assign.c
patch
|
blob
|
history
diff --git
a/hw/kvm/pci-assign.c
b/hw/kvm/pci-assign.c
index bfffbab1b3722d3a440c99f089ec29905f79450b..ab01205666d11fb71ce2588dd63c24bf130da67b 100644
(file)
--- 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;
}