Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08b53f0e authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

ACPI EC: remove redundant code



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

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1cb7b1e0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);