svn commit: r294668 - head/sys/dev/ofw

Andrew Turner andrew at FreeBSD.org
Sun Jan 24 17:09:13 UTC 2016


Author: andrew
Date: Sun Jan 24 17:09:11 2016
New Revision: 294668
URL: https://svnweb.freebsd.org/changeset/base/294668

Log:
  Fix the style of the reading of a nodes xref to make it readable.

Modified:
  head/sys/dev/ofw/openfirm.c

Modified: head/sys/dev/ofw/openfirm.c
==============================================================================
--- head/sys/dev/ofw/openfirm.c	Sun Jan 24 17:01:34 2016	(r294667)
+++ head/sys/dev/ofw/openfirm.c	Sun Jan 24 17:09:11 2016	(r294668)
@@ -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);
 }


More information about the svn-src-head mailing list