Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci
[linux-2.6.git] / arch / microblaze / pci / pci-common.c
index 016d420..85f2ac1 100644 (file)
@@ -247,7 +247,7 @@ 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",
@@ -258,7 +258,7 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
                virq = irq_create_of_mapping(oirq.controller, oirq.specifier,
                                             oirq.size);
        }
-       if (virq == NO_IRQ) {
+       if (!virq) {
                pr_debug(" Failed to map !\n");
                return -1;
        }