]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ACPI EC: remove redundant code
authorZhang Rui <rui.zhang@intel.com>
Tue, 26 Apr 2011 08:29:55 +0000 (16:29 +0800)
committerLen Brown <len.brown@intel.com>
Sun, 29 May 2011 06:59:50 +0000 (02:59 -0400)
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>
drivers/acpi/ec.c

index b3f1d6f52a89f40a087a51b9fe9be56cea29ebbe..ed8cf17cf03c9ec680eabdf5ddeb0d1a7e3769b3 100644 (file)
@@ -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);