acpi_ec: remove redundant acpi_disabled check in probe method
MFC after: 4 days
This commit is contained in:
parent
c41b2252cc
commit
bf36513f62
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user