forked from Minki/linux
[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>
This commit is contained in:
parent
0347880492
commit
090db7c86d
@ -1403,8 +1403,8 @@ struct device_node *of_find_node_by_name(struct device_node *from,
|
|||||||
|
|
||||||
read_lock(&devtree_lock);
|
read_lock(&devtree_lock);
|
||||||
np = from ? from->allnext : allnodes;
|
np = from ? from->allnext : allnodes;
|
||||||
for (; np != 0; np = np->allnext)
|
for (; np != NULL; np = np->allnext)
|
||||||
if (np->name != 0 && strcasecmp(np->name, name) == 0
|
if (np->name != NULL && strcasecmp(np->name, name) == 0
|
||||||
&& of_node_get(np))
|
&& of_node_get(np))
|
||||||
break;
|
break;
|
||||||
if (from)
|
if (from)
|
||||||
|
Loading…
Reference in New Issue
Block a user