svn commit: r365185 - head/sys/dev/ofw
Mateusz Guzik
mjg at FreeBSD.org
Tue Sep 1 22:01:58 UTC 2020
Author: mjg
Date: Tue Sep 1 22:01:53 2020
New Revision: 365185
URL: https://svnweb.freebsd.org/changeset/base/365185
Log:
ofw: clean up empty lines in .c and .h files
Modified:
head/sys/dev/ofw/ofw_bus_subr.c
head/sys/dev/ofw/ofw_cpu.c
head/sys/dev/ofw/ofw_graph.h
head/sys/dev/ofw/ofw_standard.c
head/sys/dev/ofw/ofwpci.c
head/sys/dev/ofw/openfirmio.c
Modified: head/sys/dev/ofw/ofw_bus_subr.c
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.c Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/ofw_bus_subr.c Tue Sep 1 22:01:53 2020 (r365185)
@@ -183,7 +183,7 @@ ofw_bus_status_okay(device_t dev)
if (status == NULL || strcmp(status, "okay") == 0 ||
strcmp(status, "ok") == 0)
return (1);
-
+
return (0);
}
Modified: head/sys/dev/ofw/ofw_cpu.c
==============================================================================
--- head/sys/dev/ofw/ofw_cpu.c Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/ofw_cpu.c Tue Sep 1 22:01:53 2020 (r365185)
@@ -361,7 +361,6 @@ ofw_cpu_early_foreach(ofw_cpu_foreach_cb callback, boo
for (child = OF_child(node); child != 0; child = OF_peer(child),
id = next_id) {
-
/* Check if child is a CPU */
memset(device_type, 0, sizeof(device_type));
rv = OF_getprop(child, "device_type", device_type,
Modified: head/sys/dev/ofw/ofw_graph.h
==============================================================================
--- head/sys/dev/ofw/ofw_graph.h Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/ofw_graph.h Tue Sep 1 22:01:53 2020 (r365185)
@@ -41,4 +41,3 @@ phandle_t ofw_graph_get_remote_parent(phandle_t remote
device_t ofw_graph_get_device_by_port_ep(phandle_t node, uint32_t port_id, uint32_t ep_id);
#endif /* _OFW_GRAPH_H_ */
-
Modified: head/sys/dev/ofw/ofw_standard.c
==============================================================================
--- head/sys/dev/ofw/ofw_standard.c Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/ofw_standard.c Tue Sep 1 22:01:53 2020 (r365185)
@@ -136,7 +136,6 @@ static ofw_method_t ofw_std_methods[] = {
OFWMETHOD(ofw_release, ofw_std_release),
OFWMETHOD(ofw_enter, ofw_std_enter),
OFWMETHOD(ofw_exit, ofw_std_exit),
-
{ 0, 0 }
};
Modified: head/sys/dev/ofw/ofwpci.c
==============================================================================
--- head/sys/dev/ofw/ofwpci.c Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/ofwpci.c Tue Sep 1 22:01:53 2020 (r365185)
@@ -103,7 +103,6 @@ static struct rman *ofw_pci_get_rman(struct ofw_pci_so
* Driver methods.
*/
static device_method_t ofw_pci_methods[] = {
-
/* Device interface */
DEVMETHOD(device_attach, ofw_pci_attach),
@@ -408,7 +407,6 @@ ofw_pci_alloc_resource(device_t bus, device_t child, i
struct resource *rv;
struct rman *rm;
int needactivate;
-
needactivate = flags & RF_ACTIVE;
flags &= ~RF_ACTIVE;
Modified: head/sys/dev/ofw/openfirmio.c
==============================================================================
--- head/sys/dev/ofw/openfirmio.c Tue Sep 1 22:01:41 2020 (r365184)
+++ head/sys/dev/ofw/openfirmio.c Tue Sep 1 22:01:53 2020 (r365185)
@@ -151,7 +151,6 @@ openfirm_ioctl(struct cdev *dev, u_long cmd, caddr_t d
name = value = NULL;
error = 0;
switch (cmd) {
-
case OFIOCGET:
case OFIOCGETPROPLEN:
if (node == 0)
More information about the svn-src-all
mailing list