]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: cpu_cooling: remove compiler warning
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 17 Apr 2013 17:11:58 +0000 (17:11 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Apr 2013 16:34:37 +0000 (00:34 +0800)
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>
drivers/thermal/cpu_cooling.c

index fe0a8f5932839cb2d4c4cbc4e8038ee3a90751ff..14c64b2a1466714268cb0959f7dc0460b988116e 100644 (file)
@@ -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 =