diff options
Diffstat (limited to 'src/module.c')
| -rw-r--r-- | src/module.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/module.c b/src/module.c index 71929b4462..ab1095a63c 100644 --- a/src/module.c +++ b/src/module.c @@ -919,7 +919,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_thread_detach((rt_thread_t)object); @@ -937,7 +937,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_sem_detach((rt_sem_t)object); @@ -956,7 +956,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mutex_detach((rt_mutex_t)object); @@ -975,7 +975,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_event_detach((rt_event_t)object); @@ -994,7 +994,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mb_detach((rt_mailbox_t)object); @@ -1013,7 +1013,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mq_detach((rt_mq_t)object); @@ -1032,7 +1032,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_mp_detach((rt_mp_t)object); @@ -1060,7 +1060,7 @@ rt_err_t rt_module_unload(rt_module_t module) while (list->next != list) { object = rt_list_entry(list->next, struct rt_object, list); - if (rt_object_is_systemobject(object) == RT_EOK) + if (rt_object_is_systemobject(object) == RT_TRUE) { /* detach static object */ rt_timer_detach((rt_timer_t)object); |
