lkml.org 
[lkml]   [2024]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 06/17] vfio/pci: Remove interrupt index interpretation from wrappers
From
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

\
 
 \ /
  Last update: 2024-05-27 14:51    [W:3.344 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site