Commit d6c8e086 authored by Yangtao Li's avatar Yangtao Li Committed by Viresh Kumar

cpufreq: speedstep: convert BUG() to BUG_ON()

To fix coccinelle WARNING.

WARNING: Use BUG_ON instead of if condition followed by BUG.
Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 5ae06c23
...@@ -243,8 +243,7 @@ static unsigned int speedstep_get(unsigned int cpu) ...@@ -243,8 +243,7 @@ static unsigned int speedstep_get(unsigned int cpu)
unsigned int speed; unsigned int speed;
/* You're supposed to ensure CPU is online. */ /* You're supposed to ensure CPU is online. */
if (smp_call_function_single(cpu, get_freq_data, &speed, 1) != 0) BUG_ON(smp_call_function_single(cpu, get_freq_data, &speed, 1));
BUG();
pr_debug("detected %u kHz as current frequency\n", speed); pr_debug("detected %u kHz as current frequency\n", speed);
return speed; return speed;
......
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