Small adjustment to reduce the number of comparisons when publishing devices.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20647 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bryan Varner
2007-04-11 03:26:26 +00:00
parent 127dffedfb
commit 811c52c0e8
@@ -303,11 +303,12 @@ init_driver(void)
while (pci->get_nth_pci_info(i++, &dev_info) == 0) {
is_detected = 0;
for (j = 0; bcm5700_pci_tbl[j].vendor != 0; j++) {
if ((dev_info.class_base == PCI_network) && (dev_info.class_sub == PCI_ethernet)
&& (dev_info.vendor_id == bcm5700_pci_tbl[j].vendor) && (dev_info.device_id == bcm5700_pci_tbl[j].device)) {
is_detected = 1;
break;
if ((dev_info.class_base == PCI_network) && (dev_info.class_sub == PCI_ethernet)) {
for (j = 0; bcm5700_pci_tbl[j].vendor != 0; j++) {
if ((dev_info.vendor_id == bcm5700_pci_tbl[j].vendor) && (dev_info.device_id == bcm5700_pci_tbl[j].device)) {
is_detected = 1;
break;
}
}
}