]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: clean up dead code in Kconfig
authorJulian Braha <julianbraha@gmail.com>
Tue, 31 Mar 2026 07:42:42 +0000 (08:42 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Apr 2026 13:58:01 +0000 (15:58 +0200)
commit2e00c2dcc5325af04e2dfbb29281ced1c724ab81
treeeb6b94a46376f985bfd41faa4d17b63a167899df
parent9266b4da051a410d9e6c5c0b0ef0c877855aa1b8
cpufreq: clean up dead code in Kconfig

There is already an 'if CPU_FREQ' condition wrapping these config
options, making the 'depends on' statement for each a duplicate
dependency (dead code).

Leave the outer 'if CPU_FREQ...endif' and remove the individual
'depends on' statement from each option.

This dead code was found by kconfirm, a static analysis tool for
Kconfig.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
[ rjw: Subject and changelog edits ]
Link: https://patch.msgid.link/20260331074242.39986-1-julianbraha@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/Kconfig