Fix the style of the reading of a nodes xref to make it readable.
This commit is contained in:
parent
d5119a2a9a
commit
a7ce3cb185
@ -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…
x
Reference in New Issue
Block a user