diff options
author | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-04-17 21:11:58 +0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-04-24 20:34:37 +0400 |
commit | 4469b99743d296e24aefc5f8ed7df1bc9cfbbac8 (patch) | |
tree | 1cbbe0cf0b10ebdc2d78665a56d19863dd74de69 /drivers | |
parent | 243dbd9c606ff4f925496022762c8cf5b6e4a85e (diff) | |
download | linux-4469b99743d296e24aefc5f8ed7df1bc9cfbbac8.tar.xz |
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')
-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 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, unsigned int* output, enum cpufreq_cooling_property property) { int i, j; - unsigned long max_level = 0, level; + unsigned long max_level = 0, level = 0; unsigned int freq = CPUFREQ_ENTRY_INVALID; int descend = -1; struct cpufreq_frequency_table *table = |