Skip to content

Commit 2e00c2d

Browse files
julianbraharafaeljw
authored andcommitted
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>
1 parent 9266b4d commit 2e00c2d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/cpufreq/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ config CPU_FREQ_GOV_ONDEMAND
163163

164164
config CPU_FREQ_GOV_CONSERVATIVE
165165
tristate "'conservative' cpufreq governor"
166-
depends on CPU_FREQ
167166
select CPU_FREQ_GOV_COMMON
168167
help
169168
'conservative' - this driver is rather similar to the 'ondemand'
@@ -188,7 +187,7 @@ config CPU_FREQ_GOV_CONSERVATIVE
188187

189188
config CPU_FREQ_GOV_SCHEDUTIL
190189
bool "'schedutil' cpufreq policy governor"
191-
depends on CPU_FREQ && SMP
190+
depends on SMP
192191
select CPU_FREQ_GOV_ATTR_SET
193192
select IRQ_WORK
194193
help
@@ -365,6 +364,6 @@ config ACPI_CPPC_CPUFREQ_FIE
365364

366365
If in doubt, say N.
367366

368-
endif
367+
endif # CPU_FREQ
369368

370369
endmenu

0 commit comments

Comments
 (0)