diff options
| author | Meco Man <[email protected]> | 2023-03-17 00:12:16 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-03-20 00:06:16 -0400 |
| commit | 0f461e870c481a24ce2690cca1949706bb80f9e7 (patch) | |
| tree | e77c8813658be76824bb848346cf9ef2340806f2 /src/mempool.c | |
| parent | de963feef4c5075626858c97413186fc2a309ffe (diff) | |
[errno code][-RT_ERROR] fix that use RT_ERROR without -
Diffstat (limited to 'src/mempool.c')
| -rw-r--r-- | src/mempool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mempool.c b/src/mempool.c index 197c8af488..9057288f3e 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -161,7 +161,7 @@ rt_err_t rt_mp_detach(struct rt_mempool *mp) /* get next suspend thread */ thread = rt_list_entry(mp->suspend_thread.next, struct rt_thread, tlist); - /* set error code to RT_ERROR */ + /* set error code to -RT_ERROR */ thread->error = -RT_ERROR; /* @@ -281,7 +281,7 @@ rt_err_t rt_mp_delete(rt_mp_t mp) /* get next suspend thread */ thread = rt_list_entry(mp->suspend_thread.next, struct rt_thread, tlist); - /* set error code to RT_ERROR */ + /* set error code to -RT_ERROR */ thread->error = -RT_ERROR; /* |
