aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorZhang Rui2011-04-26 16:29:55 +0800
committerLen Brown2011-05-29 02:59:50 -0400
commit08b53f0e6b565fe8dc0b8f929960ed16d76291bd (patch)
tree2e8c56e74e5cc78c9f022760c95075c885e59357 /drivers
parent1cb7b1e0de6a1f8f071f4a146e3d10f3a662f707 (diff)
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 <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/ec.c2
1 files changed, 0 insertions, 2 deletions
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);