Skip to content

Commit

Permalink
[CPUFREQ] db8500: remove unneeded for loop iteration over freq_table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AxelLin authored and Dave Jones committed Oct 26, 2011
1 parent 0073f53 commit ded8433
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/cpufreq/db8500-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ static unsigned int db8500_cpufreq_getspeed(unsigned int cpu)
static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy)
{
int res;
int i;

BUILD_BUG_ON(ARRAY_SIZE(idx2opp) + 1 != ARRAY_SIZE(freq_table));

Expand All @@ -128,10 +127,6 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy)
policy->min = policy->cpuinfo.min_freq;
policy->max = policy->cpuinfo.max_freq;
policy->cur = db8500_cpufreq_getspeed(policy->cpu);

for (i = 0; freq_table[i].frequency != policy->cur; i++)
;

policy->governor = CPUFREQ_DEFAULT_GOVERNOR;

/*
Expand Down

0 comments on commit ded8433

Please sign in to comment.