Re: [PATCH v4 1/4] PCI: Introduce pcim_alloc_irq_vectors()

From: Robert Richter
Date: Fri Feb 19 2021 - 09:49:37 EST


On 19.02.21 15:40:11, Robert Richter wrote:
> static inline int pcim_alloc_irq_vectors(struct pci_dev *dev,
> unsigned int min_vecs, unsigned int max_vecs, unsigned int flags)
> {
> if (!pci_is_managed(dev, min_vecs, max_vecs, flags))

Obiously this is meant here:

if (!pci_is_managed(dev))

> return -EINVAL;
>
> return pci_alloc_irq_vectors(dev, min_vecs, max_vecs, flags);
> }