Merge tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[cascardo/linux.git] / arch / powerpc / kernel / pci-common.c
index e589080..95d3769 100644 (file)
@@ -360,7 +360,7 @@ static int pci_read_irq_line(struct pci_dev *pci_dev)
                         line, pin);
 
                virq = irq_create_mapping(NULL, line);
-               if (virq != NO_IRQ)
+               if (virq)
                        irq_set_irq_type(virq, IRQ_TYPE_LEVEL_LOW);
        } else {
                pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n",
@@ -369,7 +369,8 @@ static int pci_read_irq_line(struct pci_dev *pci_dev)
 
                virq = irq_create_of_mapping(&oirq);
        }
-       if(virq == NO_IRQ) {
+
+       if (!virq) {
                pr_debug(" Failed to map !\n");
                return -1;
        }