Date: Tue, 9 Jun 2020 16:06:10 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361969 - head/sys/arm64/coresight Message-ID: <202006091606.059G6ABX082982@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006091606.059G6ABX082982>