summaryrefslogtreecommitdiff
path: root/components/drivers/ipc/dataqueue.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-03-17 00:12:16 -0400
committerMan, Jianting (Meco) <[email protected]>2023-03-20 00:06:16 -0400
commit0f461e870c481a24ce2690cca1949706bb80f9e7 (patch)
treee77c8813658be76824bb848346cf9ef2340806f2 /components/drivers/ipc/dataqueue.c
parentde963feef4c5075626858c97413186fc2a309ffe (diff)
[errno code][-RT_ERROR] fix that use RT_ERROR without -
Diffstat (limited to 'components/drivers/ipc/dataqueue.c')
-rw-r--r--components/drivers/ipc/dataqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/ipc/dataqueue.c b/components/drivers/ipc/dataqueue.c
index 6b53962384..cd51c3919a 100644
--- a/components/drivers/ipc/dataqueue.c
+++ b/components/drivers/ipc/dataqueue.c
@@ -389,7 +389,7 @@ void rt_data_queue_reset(struct rt_data_queue *queue)
thread = rt_list_entry(queue->suspended_pop_list.next,
struct rt_thread,
tlist);
- /* set error code to RT_ERROR */
+ /* set error code to -RT_ERROR */
thread->error = -RT_ERROR;
/*
@@ -413,7 +413,7 @@ void rt_data_queue_reset(struct rt_data_queue *queue)
thread = rt_list_entry(queue->suspended_push_list.next,
struct rt_thread,
tlist);
- /* set error code to RT_ERROR */
+ /* set error code to -RT_ERROR */
thread->error = -RT_ERROR;
/*