From bf36513f62162ecd4b2c5838eedb47826e263eae Mon Sep 17 00:00:00 2001 From: avg Date: Mon, 18 Jan 2010 11:33:58 +0000 Subject: [PATCH] acpi_ec: remove redundant acpi_disabled check in probe method MFC after: 4 days --- sys/dev/acpica/acpi_ec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index c101292b7e43..9348a2ad4705 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -366,8 +366,7 @@ acpi_ec_probe(device_t dev) if (params != NULL) { ecdt = 1; ret = 0; - } else if (!acpi_disabled("ec") && - ACPI_ID_PROBE(device_get_parent(dev), dev, ec_ids)) { + } else if (ACPI_ID_PROBE(device_get_parent(dev), dev, ec_ids)) { params = malloc(sizeof(struct acpi_ec_params), M_TEMP, M_WAITOK | M_ZERO); h = acpi_get_handle(dev);