aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom.c
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2006-02-04 06:44:56 -0500
committerPaul Mackerras <paulus@samba.org>2006-02-07 05:32:44 -0500
commit090db7c86d5df0161135793063e75bc1abddaa6f (patch)
treeebefa631f29aaddb575479be1a633c499cde7abb /arch/powerpc/kernel/prom.c
parent03478804920a53405dfff73a0b23e9dcbbbee1c1 (diff)
[PATCH] powerpc: remove pointer/integer confusion in of_find_node_by_name
remove pointer/integer confusion Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/prom.c')
-rw-r--r--arch/powerpc/kernel/prom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 2b062853bcc7..294832a7e0a6 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1403,8 +1403,8 @@ struct device_node *of_find_node_by_name(struct device_node *from,
1403 1403
1404 read_lock(&devtree_lock); 1404 read_lock(&devtree_lock);
1405 np = from ? from->allnext : allnodes; 1405 np = from ? from->allnext : allnodes;
1406 for (; np != 0; np = np->allnext) 1406 for (; np != NULL; np = np->allnext)
1407 if (np->name != 0 && strcasecmp(np->name, name) == 0 1407 if (np->name != NULL && strcasecmp(np->name, name) == 0
1408 && of_node_get(np)) 1408 && of_node_get(np))
1409 break; 1409 break;
1410 if (from) 1410 if (from)