1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

swapped if/else

This commit is contained in:
Ralph Metzler 2017-04-10 17:32:16 +02:00
parent 8931ae4d9e
commit bfd1f1979d

View File

@ -119,9 +119,9 @@ static int __devinit ddb_irq_msi(struct ddb *dev, int nr)
if (msi && pci_msi_enabled()) { if (msi && pci_msi_enabled()) {
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
stat = pci_enable_msi_range(dev->pdev, 1, nr);
#else
stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI); stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, PCI_IRQ_MSI);
#else
stat = pci_enable_msi_range(dev->pdev, 1, nr);
#endif #endif
if (stat >= 1) { if (stat >= 1) {
dev->msi = stat; dev->msi = stat;