diff options
author | Olaf Hering <olh@suse.de> | 2006-02-04 06:44:56 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-07 05:32:44 -0500 |
commit | 090db7c86d5df0161135793063e75bc1abddaa6f (patch) | |
tree | ebefa631f29aaddb575479be1a633c499cde7abb /arch | |
parent | 03478804920a53405dfff73a0b23e9dcbbbee1c1 (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')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 4 |
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) |