Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhang Rui and committed by
Len Brown
08b53f0e 1cb7b1e0

-2
-2
drivers/acpi/ec.c
··· 804 804 return -EINVAL; 805 805 } 806 806 807 - ec->handle = device->handle; 808 - 809 807 /* Find and register all query methods */ 810 808 acpi_walk_namespace(ACPI_TYPE_METHOD, ec->handle, 1, 811 809 acpi_ec_register_query_methods, NULL, ec, NULL);