From 4a26285ea19b803ff20a166bcf6ce69ce23e7036 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 18 Jan 2011 14:58:44 +0000 Subject: [PATCH] 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 --- sys/dev/acpica/acpi_pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c index a14e0ba4198..76cbacb25a8 100644 --- a/sys/dev/acpica/acpi_pci.c +++ b/sys/dev/acpica/acpi_pci.c @@ -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");