diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-12-04 07:11:53 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-08 19:08:56 +0300 |
commit | 8e54d442fe3cdd1ffe5f563ee843b4d48e14ef6e (patch) | |
tree | 73114b05157102e949eb571bbc5f080ce533140d /drivers | |
parent | 5d3bdb8998e066fe270f2f71db7163d5ac40d989 (diff) | |
download | linux-8e54d442fe3cdd1ffe5f563ee843b4d48e14ef6e.tar.xz |
thermal: cpu_cooling: no need to initialze 'ret'
ret is initialized before it is used, so no need to set it to 0 in its declaration.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index c144493e940b..d57b8bb7d423 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -454,7 +454,7 @@ __cpufreq_cooling_register(struct device_node *np, struct cpufreq_cooling_device *cpufreq_dev; unsigned int min = 0, max = 0; char dev_name[THERMAL_NAME_LENGTH]; - int ret = 0, i; + int ret, i; struct cpufreq_policy policy; if (!cpufreq_frequency_get_table(cpumask_first(clip_cpus))) { |