svn commit: r361969 - head/sys/arm64/coresight

Ruslan Bukin br at FreeBSD.org
Tue Jun 9 16:06:11 UTC 2020


Author: br
Date: Tue Jun  9 16:06:10 2020
New Revision: 361969
URL: https://svnweb.freebsd.org/changeset/base/361969

Log:
  Fix style: wrap long lines.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/arm64/coresight/coresight.c

Modified: head/sys/arm64/coresight/coresight.c
==============================================================================
--- head/sys/arm64/coresight/coresight.c	Tue Jun  9 15:56:41 2020	(r361968)
+++ head/sys/arm64/coresight/coresight.c	Tue Jun  9 16:06:10 2020	(r361969)
@@ -78,30 +78,33 @@ coresight_get_ports(phandle_t dev_node,
 		    strncasecmp(name, "port@", 6)) {
 
 			port_reg = -1;
-			OF_getencprop(child, "reg", (void *)&port_reg, sizeof(port_reg));
+			OF_getencprop(child, "reg", (void *)&port_reg,
+			    sizeof(port_reg));
 
 			endpoint_child = ofw_bus_find_child(child, "endpoint");
 			if (endpoint_child) {
-				if (OF_getencprop(endpoint_child, "remote-endpoint", &xref,
+				if (OF_getencprop(endpoint_child,
+				    "remote-endpoint", &xref,
 				    sizeof(xref)) == -1) {
 					printf("failed\n");
 					continue;
 				}
-				endp = malloc(sizeof(struct endpoint), M_CORESIGHT,
-				    M_WAITOK | M_ZERO);
+				endp = malloc(sizeof(struct endpoint),
+				    M_CORESIGHT, M_WAITOK | M_ZERO);
 				endp->my_node = endpoint_child;
 				endp->their_node = OF_node_from_xref(xref);
 				endp->dev_node = dev_node;
 				endp->reg = port_reg;
-				if (OF_getproplen(endpoint_child, "slave-mode") >= 0) {
+				if (OF_getproplen(endpoint_child,
+				    "slave-mode") >= 0) {
 					pdata->in_ports++;
 					endp->slave = 1;
-				} else {
+				} else
 					pdata->out_ports++;
-				}
 
 				mtx_lock(&pdata->mtx_lock);
-				TAILQ_INSERT_TAIL(&pdata->endpoints, endp, link);
+				TAILQ_INSERT_TAIL(&pdata->endpoints,
+				    endp, link);
 				mtx_unlock(&pdata->mtx_lock);
 			}
 		}


More information about the svn-src-head mailing list