Actually revert last... Upon closer inspection the code works in the

face of errors already...  A bit unorthodox, but none-the-less valid.
This commit is contained in:
Warner Losh 2008-08-23 07:43:03 +00:00
parent b52943f026
commit 83bda63e3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182036

View File

@ -348,8 +348,7 @@ sis_find_bridge(device_t dev)
for (i = 0, busp = pci_devices; i < pci_count; i++, busp++) {
pci_childcount = 0;
if (device_get_children(*busp, &pci_children, &pci_childcount))
break;
device_get_children(*busp, &pci_children, &pci_childcount);
for (j = 0, childp = pci_children;
j < pci_childcount; j++, childp++) {
if (pci_get_vendor(*childp) == SIS_VENDORID &&