ACPI: EC: Untangle error handling in advance_transaction()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2020 19:00:42 +0000 (20:00 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2020 19:00:42 +0000 (20:00 +0100)
commit631734fce3fa27ec5d6f456fc1dd3699617c9efb
tree4450c06299e350f1cead8fc9b366a7c87b9412ed
parent902675fa87e3a3d433481a2df6e50c10da5e20c2
ACPI: EC: Untangle error handling in advance_transaction()

Introduce acpi_ec_spurious_interrupt() for recording spurious
interrupts and use it for error handling in advance_transaction(),
drop the (now redundant) original error handling block from there
along with a frew goto statements that are not necessary any more.

No intentional functional impact.

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