Fix the style of the reading of a nodes xref to make it readable.
This commit is contained in:
parent
d5119a2a9a
commit
a7ce3cb185
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=294668
@ -599,10 +599,9 @@ OF_xref_from_node(phandle_t node)
|
||||
return (xi->xref);
|
||||
}
|
||||
|
||||
if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) ==
|
||||
-1 && OF_getencprop(node, "ibm,phandle", &xref,
|
||||
sizeof(xref)) == -1 && OF_getencprop(node,
|
||||
"linux,phandle", &xref, sizeof(xref)) == -1)
|
||||
if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 &&
|
||||
OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 &&
|
||||
OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1)
|
||||
return (node);
|
||||
return (xref);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user