aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/cpu_cooling.c
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-04-17 13:11:58 -0400
committerZhang Rui <rui.zhang@intel.com>2013-04-24 12:34:37 -0400
commit4469b99743d296e24aefc5f8ed7df1bc9cfbbac8 (patch)
tree1cbbe0cf0b10ebdc2d78665a56d19863dd74de69 /drivers/thermal/cpu_cooling.c
parent243dbd9c606ff4f925496022762c8cf5b6e4a85e (diff)
thermal: cpu_cooling: remove compiler warning
level will be used only if GET_FREQ mode is requested. There is no potential harm with current code. But for cleaning the compilation log, this patch initializes level to zero. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/cpu_cooling.c')
-rw-r--r--drivers/thermal/cpu_cooling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index fe0a8f593283..14c64b2a1466 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -127,7 +127,7 @@ static int get_property(unsigned int cpu, unsigned long input,
127 unsigned int* output, enum cpufreq_cooling_property property) 127 unsigned int* output, enum cpufreq_cooling_property property)
128{ 128{
129 int i, j; 129 int i, j;
130 unsigned long max_level = 0, level; 130 unsigned long max_level = 0, level = 0;
131 unsigned int freq = CPUFREQ_ENTRY_INVALID; 131 unsigned int freq = CPUFREQ_ENTRY_INVALID;
132 int descend = -1; 132 int descend = -1;
133 struct cpufreq_frequency_table *table = 133 struct cpufreq_frequency_table *table =