Commit df690221 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] aml_active_sched_destroy never working

return-early test always succeeding for the wrong raison.
parent 52cc2dec
...@@ -409,7 +409,7 @@ void aml_active_sched_destroy(struct aml_sched **sched) ...@@ -409,7 +409,7 @@ void aml_active_sched_destroy(struct aml_sched **sched)
{ {
struct aml_active_sched *data; struct aml_active_sched *data;
if (sched == NULL || *sched != NULL) if (sched == NULL || *sched == NULL)
return; return;
data = (struct aml_active_sched *) (*sched)->data; data = (struct aml_active_sched *) (*sched)->data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment