mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove bogus check. pcib_get_bus() (like other BUS_ACCESSOR() methods)
doesn't "fail", it may merely return garbage if it is not a valid ivar for a given device. Our parent device must be a 'pcib' device, so we can just assume it implements pcib IVARs, and all pcib devices have a bus number. Submitted by: clang via rdivacky
This commit is contained in:
parent
1e0658d5ca
commit
4a26285ea1
1 changed files with 0 additions and 2 deletions
|
|
@ -281,8 +281,6 @@ static int
|
|||
acpi_pci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (pcib_get_bus(dev) < 0)
|
||||
return (ENXIO);
|
||||
if (acpi_get_handle(dev) == NULL)
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "ACPI PCI bus");
|
||||
|
|
|
|||
Loading…
Reference in a new issue