]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: remove pointer/integer confusion in of_find_node_by_name
authorOlaf Hering <olh@suse.de>
Sat, 4 Feb 2006 11:44:56 +0000 (12:44 +0100)
committerPaul Mackerras <paulus@samba.org>
Tue, 7 Feb 2006 10:32:44 +0000 (21:32 +1100)
remove pointer/integer confusion

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c

index 2b062853bcc7a1715f0e026ac1e8566c1f4651dd..294832a7e0a6598c7eb92093ff60216941f2203f 100644 (file)
@@ -1403,8 +1403,8 @@ struct device_node *of_find_node_by_name(struct device_node *from,
 
        read_lock(&devtree_lock);
        np = from ? from->allnext : allnodes;
-       for (; np != 0; np = np->allnext)
-               if (np->name != 0 && strcasecmp(np->name, name) == 0
+       for (; np != NULL; np = np->allnext)
+               if (np->name != NULL && strcasecmp(np->name, name) == 0
                    && of_node_get(np))
                        break;
        if (from)