Commit 41602989 authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr fc/iphase] correct PCI probe loop-end test logic [#323]

Fixes bugzilla bug #323.
parent 7f939798
...@@ -3769,7 +3769,7 @@ struct pci_dev *pdev = NULL; ...@@ -3769,7 +3769,7 @@ struct pci_dev *pdev = NULL;
for (i = 0; i <= MAX_FC_CARDS; i++) for (i = 0; i <= MAX_FC_CARDS; i++)
fc[i] = NULL; fc[i] = NULL;
for (i = 0; i < clone_list[i].vendor_id != 0; i++) for (i = 0; clone_list[i].vendor_id != 0; i++)
while ((pdev = pci_find_device(clone_list[i].vendor_id, clone_list[i].device_id, pdev))) { while ((pdev = pci_find_device(clone_list[i].vendor_id, clone_list[i].device_id, pdev))) {
unsigned short pci_command; unsigned short pci_command;
if (pci_enable_device(pdev)) if (pci_enable_device(pdev))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment