diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-27 03:11:42 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-10-26 17:19:47 -0400 |
commit | ded84337ac820700f1b9dda724201e64b2ad3536 (patch) | |
tree | d8edc047850124ad01714c201eb32d099e0b489e /drivers/cpufreq | |
parent | 0073f538c1c35f996982b583f5de7a6a43408b9b (diff) |
[CPUFREQ] db8500: remove unneeded for loop iteration over freq_table
Don't know why to do the loop iteration here. It looks unneeded.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/db8500-cpufreq.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/db8500-cpufreq.c b/drivers/cpufreq/db8500-cpufreq.c index e0acaceca57d..b87236add6be 100644 --- a/drivers/cpufreq/db8500-cpufreq.c +++ b/drivers/cpufreq/db8500-cpufreq.c | |||
@@ -105,7 +105,6 @@ static unsigned int db8500_cpufreq_getspeed(unsigned int cpu) | |||
105 | static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) | 105 | static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) |
106 | { | 106 | { |
107 | int res; | 107 | int res; |
108 | int i; | ||
109 | 108 | ||
110 | BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table)); | 109 | BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table)); |
111 | 110 | ||
@@ -128,10 +127,6 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) | |||
128 | policy->min = policy->cpuinfo.min_freq; | 127 | policy->min = policy->cpuinfo.min_freq; |
129 | policy->max = policy->cpuinfo.max_freq; | 128 | policy->max = policy->cpuinfo.max_freq; |
130 | policy->cur = db8500_cpufreq_getspeed(policy->cpu); | 129 | policy->cur = db8500_cpufreq_getspeed(policy->cpu); |
131 | |||
132 | for (i = 0; freq_table[i].frequency != policy->cur; i++) | ||
133 | ; | ||
134 | |||
135 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | 130 | policy->governor = CPUFREQ_DEFAULT_GOVERNOR; |
136 | 131 | ||
137 | /* | 132 | /* |