Replace open coded version Signed-off-by: Alex Williamson <alex.william...@redhat.com> ---
hw/kvm/pci-assign.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/kvm/pci-assign.c b/hw/kvm/pci-assign.c index 7ce0f37..ddde573 100644 --- a/hw/kvm/pci-assign.c +++ b/hw/kvm/pci-assign.c @@ -894,8 +894,7 @@ static int assign_intx(AssignedDevice *dev) return -ENOTSUP; } - 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; }