-/* $OpenBSD: mainbus.c,v 1.23 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: mainbus.c,v 1.24 2015/05/06 02:36:01 jsg Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
for (node = OF_child(OF_peer(0)); node; node=OF_peer(node)) {
bzero (name, sizeof(name));
- if (OF_getprop(node, "device_type", name,
- sizeof(name)) <= 0) {
- if (OF_getprop(node, "name", name,
- sizeof(name)) <= 0)
- printf ("name not found on node %x\n",
- node);
+ if (OF_getprop(node, "device_type", name, sizeof(name)) <= 0) {
+ if (OF_getprop(node, "name", name, sizeof(name)) <= 0) {
+ printf ("name not found on node %x\n", node);
continue;
+ }
}
if (strcmp(name, "memory") == 0) {
nca.ca_name = "mem";