From: Zhang Rui Date: Tue, 26 Apr 2011 08:29:55 +0000 (+0800) Subject: ACPI EC: remove redundant code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08b53f0e6b565fe8dc0b8f929960ed16d76291bd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Len Brown --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index b3f1d6f52a89..ed8cf17cf03c 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -804,8 +804,6 @@ static int acpi_ec_add(struct acpi_device *device) return -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);