Re: [PATCH 14/15] net: hns3: use PCI_IRQ_MSI_TYPES where appropriate

From: Andy Shevchenko
Date: Tue Jun 02 2020 - 11:39:27 EST


On Tue, Jun 2, 2020 at 12:26 PM Piotr Stankiewicz
<piotr.stankiewicz@xxxxxxxxx> wrote:
>
> Seeing as there is shorthand available to use when asking for any type
> of interrupt, or any type of message signalled interrupt, leverage it.

...

> vectors = pci_alloc_irq_vectors(pdev, HNAE3_MIN_VECTOR_NUM,
> - hdev->num_msi,
> - PCI_IRQ_MSI | PCI_IRQ_MSIX);
> + hdev->num_msi, PCI_IRQ_MSI_TYPES);

...

> vectors = pci_alloc_irq_vectors(pdev, HNAE3_MIN_VECTOR_NUM,

> hdev->num_msi,
> - PCI_IRQ_MSI | PCI_IRQ_MSIX);
> + PCI_IRQ_MSI_TYPES);

One line as above?

--
With Best Regards,
Andy Shevchenko