ACPI: processor: idle: Redefine two functions as void
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Sep 2025 21:10:31 +0000 (23:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 19 Sep 2025 20:49:49 +0000 (22:49 +0200)
commitfbd401e95e569ad0307e4301012f2d8e1ec1ee98
tree3c507685b3ab32c7bb0c2301af98c1995bb0cc43
parent8a1b5d412cb405df402cdc59135655788fc59d0f
ACPI: processor: idle: Redefine two functions as void

Notice that acpi_processor_power_init() and acpi_processor_power_exit()
don't need to return any values because their callers don't check them
anyway, so redefine those functions as void.

While at it, rearrange the code in acpi_processor_power_init() to
reduce the indentation level, get rid of a redundant local variable
in that function, and rephrase a code comment in it.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/acpi/processor_idle.c
include/acpi/processor.h