Skip to contentSkip to conversation

ACPI EC: remove redundant code

PATCH Applied Zhang Rui 1 participant 1 message Apr 26, 2011 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 1/2 ACPI EC: remove redundant code

ec->handle is set in ec_parse_device(), so don't bother to set it again.

---
 drivers/acpi/ec.c |    2 --
 1 file changed, 2 deletions(-)
drivers/acpi/ec.c +0 -2
Index: linux-2.6/drivers/acpi/ec.c
===================================================================
@@ -808,8 +808,6 @@ static int acpi_ec_add(struct acpi_devic
 			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);