From: Eduardo Valentin Date: Wed, 17 Apr 2013 17:11:58 +0000 (+0000) Subject: thermal: cpu_cooling: remove compiler warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4469b99743d296e24aefc5f8ed7df1bc9cfbbac8;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Acked-by: Amit Daniel Kachhap Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index fe0a8f59328..14c64b2a146 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 =