From: Zhang Rui Date: Tue, 26 Apr 2011 08:29:55 +0000 (+0800) Subject: ACPI EC: remove redundant code X-Git-Tag: v3.0-rc1~12^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08b53f0e6b565fe8dc0b8f929960ed16d76291bd;p=profile%2Fivi%2Fkernel-x86-ivi.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 b3f1d6f..ed8cf17 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);