None of the drivers set these attributes directly now, remove the
unnecessary check.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
/* 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;