whenever a node has already a child, it means a driver has already attached to this node

for this reason, we don't add such a node in the list of nodes to be scanned
this fixes the bug #1578


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22726 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-10-25 18:25:23 +00:00
parent cf91c9e850
commit 99d0c19e37
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ get_nodes_for_device_type(device_node_info *node, struct list *list, const char
matches = true;
}
if (matches) {
if (matches && list_get_first_item(&node->children) == NULL) {
#ifdef TRACE_PROBE
dprintf("** NODE MATCHES TYPE %s\n", type);
dm_dump_node(node, 0);