Skip to content

Commit 57b7cb0

Browse files
Alexander Gordeevbjorn-helgaas
authored andcommitted
s390/PCI: Remove superfluous check of MSI type
arch_setup_msi_irqs() hook can only be called from the generic MSI code which ensures correct MSI type parameter. Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent a384c89 commit 57b7cb0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/s390/pci/pci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,6 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
407407
struct msi_msg msg;
408408
int rc;
409409

410-
if (type != PCI_CAP_ID_MSIX && type != PCI_CAP_ID_MSI)
411-
return -EINVAL;
412410
if (type == PCI_CAP_ID_MSI && nvec > 1)
413411
return 1;
414412
msi_vecs = min(nvec, ZPCI_MSI_VEC_MAX);

0 commit comments

Comments
 (0)