]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: processor: idle: Redefine two functions as void
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Dec 2025 10:09:12 +0000 (18:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 Jan 2026 21:38:22 +0000 (22:38 +0100)
commit31612f3642b1ec813c9c5915b4704e669630db28
treeb91c58952cb5e367b24559472fd803f4a355e8bf
parent0089ce1c056aee547115bdc25c223f8f88c08498
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>
Tested-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20251223100914.2407069-5-lihuisong@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c
include/acpi/processor.h