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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to