forked from enlightenment/enlightenment
Cpufreq: Don't check for NULL then depend on the value not being NULL. Fixes CID 1365406
This commit is contained in:
parent
57f854bc59
commit
975366ba7b
|
@ -1306,8 +1306,8 @@ _cpufreq_cb_frequency_check_notify(void *data EINA_UNUSED,
|
||||||
_cpufreq_status_free(status);
|
_cpufreq_status_free(status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cpufreq_config->status) _cpufreq_status_free(cpufreq_config->status);
|
|
||||||
active = cpufreq_config->status->active;
|
active = cpufreq_config->status->active;
|
||||||
|
_cpufreq_status_free(cpufreq_config->status);
|
||||||
cpufreq_config->status = status;
|
cpufreq_config->status = status;
|
||||||
for (l = cpufreq_config->instances; l; l = l->next)
|
for (l = cpufreq_config->instances; l; l = l->next)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue