Messages in this thread | | | Date | Tue, 6 Feb 2024 13:44:44 -0800 | Subject | Re: [PATCH 06/17] vfio/pci: Remove interrupt index interpretation from wrappers | From | Reinette Chatre <> |
| |
Hi Alex,
On 2/5/2024 2:35 PM, Alex Williamson wrote: > On Thu, 1 Feb 2024 20:57:00 -0800 > Reinette Chatre <reinette.chatre@intel.com> wrote:
>> @@ -413,8 +415,10 @@ static int vfio_msi_alloc_irq(struct vfio_pci_core_device *vdev, >> } >> >> static int vfio_msi_set_vector_signal(struct vfio_pci_core_device *vdev, >> - unsigned int vector, int fd, bool msix) >> + unsigned int vector, int fd, >> + unsigned int index) >> { >> + bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX) ? true : false; > > Cleanup the unnecessary ternary while here, this can just be: > > bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX); >
Will do. Thank you.
Reinette
| |