From: Viresh Kumar Date: Thu, 23 Jan 2025 04:06:44 +0000 (+0530) Subject: cpufreq: Stop checking for duplicate available/boost freq attributes X-Git-Tag: v6.15-rc1~191^2~4^2^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38bcdb635ac6b837175200b34e5164a256abd27d;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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;