diff options
Diffstat (limited to 'drivers/thermal/cpu_cooling.c')
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index a294921be650..4b9be532cb14 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -142,14 +142,13 @@ static int get_property(unsigned int cpu, unsigned long input, | |||
142 | int descend = -1; | 142 | int descend = -1; |
143 | struct cpufreq_frequency_table *table = | 143 | struct cpufreq_frequency_table *table = |
144 | cpufreq_frequency_get_table(cpu); | 144 | cpufreq_frequency_get_table(cpu); |
145 | 145 | ||
146 | if (!output) | 146 | if (!output) |
147 | return -EINVAL; | 147 | return -EINVAL; |
148 | 148 | ||
149 | if (!table) | 149 | if (!table) |
150 | return -EINVAL; | 150 | return -EINVAL; |
151 | 151 | ||
152 | |||
153 | for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) { | 152 | for (i = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) { |
154 | /* ignore invalid entries */ | 153 | /* ignore invalid entries */ |
155 | if (table[i].frequency == CPUFREQ_ENTRY_INVALID) | 154 | if (table[i].frequency == CPUFREQ_ENTRY_INVALID) |