mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
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>
This commit is contained in:
parent
243dbd9c60
commit
4469b99743
@ -127,7 +127,7 @@ static int get_property(unsigned int cpu, unsigned long input,
|
|||||||
unsigned int* output, enum cpufreq_cooling_property property)
|
unsigned int* output, enum cpufreq_cooling_property property)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
unsigned long max_level = 0, level;
|
unsigned long max_level = 0, level = 0;
|
||||||
unsigned int freq = CPUFREQ_ENTRY_INVALID;
|
unsigned int freq = CPUFREQ_ENTRY_INVALID;
|
||||||
int descend = -1;
|
int descend = -1;
|
||||||
struct cpufreq_frequency_table *table =
|
struct cpufreq_frequency_table *table =
|
||||||
|
Loading…
Reference in New Issue
Block a user