Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 17:09:11 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294668 - head/sys/dev/ofw
Message-ID:  <201601241709.u0OH9B7P036586@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601241709.u0OH9B7P036586>