diff options
Diffstat (limited to 'src/usb-ehci.c')
-rw-r--r-- | src/usb-ehci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usb-ehci.c b/src/usb-ehci.c index f11924af..5a0eb3ea 100644 --- a/src/usb-ehci.c +++ b/src/usb-ehci.c @@ -280,7 +280,6 @@ ehci_init(u16 bdf, int busid, int compbdf) // Find companion controllers. int count = 0; - int max = pci_to_bdf(pci_bdf_to_bus(bdf) + 1, 0, 0); for (;;) { if (compbdf < 0 || compbdf >= bdf) break; @@ -294,7 +293,7 @@ ehci_init(u16 bdf, int busid, int compbdf) cntl->companion[count].type = USB_TYPE_OHCI; count++; } - compbdf = pci_next(compbdf+1, &max); + compbdf = pci_next(compbdf+1, pci_bdf_to_bus(compbdf)); } run_thread(configure_ehci, cntl); |