Skip to content

Commit

Permalink
ACPI EC: remove redundant code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Rui authored and Len Brown committed May 29, 2011
1 parent 1cb7b1e commit 08b53f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 08b53f0

Please sign in to comment.