ACPI EC: remove redundant code
PATCH 1/2 ACPI EC: remove redundant code
ec->handle is set in ec_parse_device(), so don't bother to set it again.
Signed-off-by Zhang Rui <[email protected]>
--- drivers/acpi/ec.c | 2 -- 1 file changed, 2 deletions(-)
drivers/acpi/ec.c +0 -2
@@ -808,8 +808,6 @@ static int acpi_ec_add(struct acpi_devicreturn -EINVAL ; } - ec->handle = device->handle; -/* Find and register all query methods */ acpi_walk_namespace (ACPI_TYPE_METHOD , ec->handle,1 , acpi_ec_register_query_methods,NULL , ec,NULL );