ACPI: OSL: Rearrange workqueue selection in acpi_os_execute()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Nov 2023 13:48:22 +0000 (14:48 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Dec 2023 20:14:34 +0000 (21:14 +0100)
commit3f3a2599374ede5ac47ca89981ff8dd8f304d915
tree9e3775ce29842923340400f8f64ffdee9cd359ed
parent392829ede37f36efa2e0f034631594786a9c8139
ACPI: OSL: Rearrange workqueue selection in acpi_os_execute()

Replace the 3-branch if () statement used for selecting the target
workqueue in acpi_os_execute() with a switch () one that is more
suitable for this purpose and carry out the work item initialization
before it to avoid code duplication.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/acpi/osl.c