diff options
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cppc_cpufreq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 93c219fab850..e8cb334094b0 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c | |||
@@ -166,8 +166,7 @@ static int __init cppc_cpufreq_init(void) | |||
166 | 166 | ||
167 | out: | 167 | out: |
168 | for_each_possible_cpu(i) | 168 | for_each_possible_cpu(i) |
169 | if (all_cpu_data[i]) | 169 | kfree(all_cpu_data[i]); |
170 | kfree(all_cpu_data[i]); | ||
171 | 170 | ||
172 | kfree(all_cpu_data); | 171 | kfree(all_cpu_data); |
173 | return -ENODEV; | 172 | return -ENODEV; |