diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 22:01:53 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-09-01 22:01:53 +0000 |
| commit | f9874fbbf177e0284f8c65c050a51b40e35be4de (patch) | |
| tree | 7beaad52dbd5ef03e3f8f503e7862b2c4236ee55 /sys/dev/ofw | |
| parent | ad297e9ec5c1a2493ac80af687f477ad554bbb5d (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofw_bus_subr.c | 2 | ||||
| -rw-r--r-- | sys/dev/ofw/ofw_cpu.c | 1 | ||||
| -rw-r--r-- | sys/dev/ofw/ofw_graph.h | 1 | ||||
| -rw-r--r-- | sys/dev/ofw/ofw_standard.c | 1 | ||||
| -rw-r--r-- | sys/dev/ofw/ofwpci.c | 2 | ||||
| -rw-r--r-- | sys/dev/ofw/openfirmio.c | 1 |
6 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c index fda4a94e02f5..5ce8d7b7bd48 100644 --- a/sys/dev/ofw/ofw_bus_subr.c +++ b/sys/dev/ofw/ofw_bus_subr.c @@ -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); } diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c index 336b6fc6d28d..293d765e8cbd 100644 --- a/sys/dev/ofw/ofw_cpu.c +++ b/sys/dev/ofw/ofw_cpu.c @@ -361,7 +361,6 @@ ofw_cpu_early_foreach(ofw_cpu_foreach_cb callback, boolean_t only_runnable) 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, diff --git a/sys/dev/ofw/ofw_graph.h b/sys/dev/ofw/ofw_graph.h index 5a7ab3a471ef..eecc2b76885e 100644 --- a/sys/dev/ofw/ofw_graph.h +++ b/sys/dev/ofw/ofw_graph.h @@ -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_ */ - diff --git a/sys/dev/ofw/ofw_standard.c b/sys/dev/ofw/ofw_standard.c index 8db92b12902a..c2beabc0122f 100644 --- a/sys/dev/ofw/ofw_standard.c +++ b/sys/dev/ofw/ofw_standard.c @@ -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 } }; diff --git a/sys/dev/ofw/ofwpci.c b/sys/dev/ofw/ofwpci.c index 95d4421ccddf..a912da6698a0 100644 --- a/sys/dev/ofw/ofwpci.c +++ b/sys/dev/ofw/ofwpci.c @@ -103,7 +103,6 @@ static struct rman *ofw_pci_get_rman(struct ofw_pci_softc *, int, u_int); * Driver methods. */ static device_method_t ofw_pci_methods[] = { - /* Device interface */ DEVMETHOD(device_attach, ofw_pci_attach), @@ -409,7 +408,6 @@ ofw_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, struct rman *rm; int needactivate; - needactivate = flags & RF_ACTIVE; flags &= ~RF_ACTIVE; diff --git a/sys/dev/ofw/openfirmio.c b/sys/dev/ofw/openfirmio.c index a6ee962b5c8f..691d0dd80d04 100644 --- a/sys/dev/ofw/openfirmio.c +++ b/sys/dev/ofw/openfirmio.c @@ -151,7 +151,6 @@ openfirm_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, name = value = NULL; error = 0; switch (cmd) { - case OFIOCGET: case OFIOCGETPROPLEN: if (node == 0) |
