]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: processor: idle: Remove redundant pr->power.count assignment
authorZhang Rui <rui.zhang@intel.com>
Wed, 9 Apr 2025 00:50:26 +0000 (08:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Apr 2025 12:17:12 +0000 (14:17 +0200)
commit0edd1d13de5eb325dd9a6b39fccfc52d022effe2
tree567f5a8fe45cf9551a793f2de56fb841d02ca839
parent8fa2f8bd6ad10ecf12f9872cdc5d8df7056e98e3
ACPI: processor: idle: Remove redundant pr->power.count assignment

pr->power.count stands for the number of valid processor cstates. And it
is correctly set with the return value of acpi_processor_power_verify(),
in acpi_processor_get_cstate_info().

Remove the redundant logic that unnecessarily overrides pr->power.count
value.

No functional change intended.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://patch.msgid.link/20250409005026.1932637-3-rui.zhang@intel.com
[ rjw: Removed unused variable, fixed up white space ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c