ofw: clean up empty lines in .c and .h files
This commit is contained in:
parent
ad297e9ec5
commit
f9874fbbf1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365185
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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_ */
|
||||
|
||||
|
@ -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 }
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user