Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 090db7c8 authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras
Browse files

[PATCH] powerpc: remove pointer/integer confusion in of_find_node_by_name



remove pointer/integer confusion

Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 03478804
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)