Commit 91420220 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Use swap() in longhaul.c

Remove hand-coded implementation of swap()
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 3a58df35
...@@ -511,13 +511,10 @@ static int __init longhaul_get_ranges(void) ...@@ -511,13 +511,10 @@ static int __init longhaul_get_ranges(void)
} }
} }
if (min_i != j) { if (min_i != j) {
unsigned int temp; swap(longhaul_table[j].frequency,
temp = longhaul_table[j].frequency; longhaul_table[min_i].frequency);
longhaul_table[j].frequency = longhaul_table[min_i].frequency; swap(longhaul_table[j].index,
longhaul_table[min_i].frequency = temp; longhaul_table[min_i].index);
temp = longhaul_table[j].index;
longhaul_table[j].index = longhaul_table[min_i].index;
longhaul_table[min_i].index = temp;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment