summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2011-04-26 10:29:55 +0200
committerLen Brown <len.brown@intel.com>2011-05-29 08:59:50 +0200
commit08b53f0e6b565fe8dc0b8f929960ed16d76291bd (patch)
tree2e8c56e74e5cc78c9f022760c95075c885e59357 /drivers/acpi/ec.c
parentACPI EC: remove dead code (diff)
downloadlinux-08b53f0e6b565fe8dc0b8f929960ed16d76291bd.tar.xz
linux-08b53f0e6b565fe8dc0b8f929960ed16d76291bd.zip
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/acpi/ec.c')
-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);