summaryrefslogtreecommitdiff
path: root/components/drivers/ipc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-03-21 15:38:02 -0400
committerMan, Jianting (Meco) <[email protected]>2023-03-22 01:54:52 -0400
commiteb3cb250be8fc2c68d58995e1aae88dc01d85f6e (patch)
tree4e6c241345360781969af9ebc311e2a8329744ec /components/drivers/ipc
parent87c57f86f73af132ed12a9092ff8c03d95d58791 (diff)
[errno code][-RT_ETIMEOUT] fix that use RT_ETIMEOUT without -
Diffstat (limited to 'components/drivers/ipc')
-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 cd51c3919a..03e685a6bf 100644
--- a/components/drivers/ipc/dataqueue.c
+++ b/components/drivers/ipc/dataqueue.c
@@ -84,7 +84,7 @@ RTM_EXPORT(rt_data_queue_init);
* @param timeout is the waiting time.
*
* @return Return the operation status. When the return value is RT_EOK, the operation is successful.
- * When the return value is RT_ETIMEOUT, it means the specified time out.
+ * When the return value is -RT_ETIMEOUT, it means the specified time out.
*/
rt_err_t rt_data_queue_push(struct rt_data_queue *queue,
const void *data_ptr,
@@ -201,7 +201,7 @@ RTM_EXPORT(rt_data_queue_push);
* @param timeout is the waiting time.
*
* @return Return the operation status. When the return value is RT_EOK, the operation is successful.
- * When the return value is RT_ETIMEOUT, it means the specified time out.
+ * When the return value is -RT_ETIMEOUT, it means the specified time out.
*/
rt_err_t rt_data_queue_pop(struct rt_data_queue *queue,
const void **data_ptr,