cpufreq: drivers: Remove unnecessary assignments of policy-> members
[sfrench/cifs-2.6.git] / arch / sh / kernel / cpufreq.c
index 0fdf64b759c8277924117a43104e25383c47f655..88c8feedf785d45eb80fb7a522e2cfd2048cae49 100644 (file)
@@ -116,7 +116,7 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy)
                return PTR_ERR(cpuclk);
        }
 
-       policy->cur = policy->min = policy->max = sh_cpufreq_get(cpu);
+       policy->cur = sh_cpufreq_get(cpu);
 
        freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL;
        if (freq_table) {
@@ -129,15 +129,12 @@ static int sh_cpufreq_cpu_init(struct cpufreq_policy *policy)
                dev_notice(dev, "no frequency table found, falling back "
                           "to rate rounding.\n");
 
-               policy->cpuinfo.min_freq =
+               policy->min = policy->cpuinfo.min_freq =
                        (clk_round_rate(cpuclk, 1) + 500) / 1000;
-               policy->cpuinfo.max_freq =
+               policy->max = policy->cpuinfo.max_freq =
                        (clk_round_rate(cpuclk, ~0UL) + 500) / 1000;
        }
 
-       policy->min = policy->cpuinfo.min_freq;
-       policy->max = policy->cpuinfo.max_freq;
-
        policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 
        dev_info(dev, "CPU Frequencies - Minimum %u.%03u MHz, "