]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPI: EC: Clean up probing for early EC
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jan 2019 12:07:50 +0000 (13:07 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 29 Jan 2019 10:01:30 +0000 (11:01 +0100)
commitfdb3c177657033bfeff5652891bb67ff6e86b557
tree3567e7a30afd5295d638fd858e2eee0b1589f7b7
parentf17b5f06cb92ef2250513a1e154c47b78df07d40
ACPI: EC: Clean up probing for early EC

Both acpi_ec_dsdt_probe() and acpi_ec_ecdt_probe() may be void as
their return values are ignored anyway.  This allows a couple of
gotos and labels to go away from there.

Moreover, acpi_ec_ecdt_probe() only needs to allocate the ec
object after getting the ECDT pointer and checking it, so the
pointless memory allocation and release on systems without the
ECDT can be avoided by reordering it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c
drivers/acpi/internal.h