From 38bcdb635ac6b837175200b34e5164a256abd27d Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 23 Jan 2025 09:36:44 +0530 Subject: [PATCH] cpufreq: Stop checking for duplicate available/boost freq attributes None of the drivers set these attributes directly now, remove the unnecessary check. Signed-off-by: Viresh Kumar Acked-by: Rafael J. Wysocki --- drivers/cpufreq/cpufreq.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 71ecf6a004e85..42b00ca510356 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1077,13 +1077,6 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy) /* set up files for this cpu device */ drv_attr = cpufreq_driver->attr; while (drv_attr && *drv_attr) { - /* These are already added, skip them */ - if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs || - *drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) { - drv_attr++; - continue; - } - ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); if (ret) return ret; -- 2.39.5