]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/platforms/powermac/pci.c
powerpc/sparse: Fix plain integer as NULL pointer warning
[linux.git] / arch / powerpc / platforms / powermac / pci.c
index 0b8174a799937b7a11e84a56a95c5ff163e10901..df762bb3c735632fcdca159c30c31cf61064c784 100644 (file)
@@ -62,7 +62,7 @@ struct device_node *k2_skiplist[2];
 
 static int __init fixup_one_level_bus_range(struct device_node *node, int higher)
 {
-       for (; node != 0;node = node->sibling) {
+       for (; nodenode = node->sibling) {
                const int * bus_range;
                const unsigned int *class_code;
                int len;
@@ -1219,7 +1219,7 @@ static void fixup_u4_pcie(struct pci_dev* dev)
                        region = r;
        }
        /* Nothing found, bail */
-       if (region == 0)
+       if (!region)
                return;
 
        /* Print things out */