diff options
Diffstat (limited to 'components/drivers/ipc/dataqueue.c')
| -rw-r--r-- | components/drivers/ipc/dataqueue.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/drivers/ipc/dataqueue.c b/components/drivers/ipc/dataqueue.c index fc77f83922..94e7b087c5 100644 --- a/components/drivers/ipc/dataqueue.c +++ b/components/drivers/ipc/dataqueue.c @@ -99,10 +99,7 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue, RT_ASSERT(queue->magic == DATAQUEUE_MAGIC); /* current context checking */ - if (timeout != 0) - { - RT_DEBUG_SCHEDULER_AVAILABLE; - } + RT_DEBUG_SCHEDULER_AVAILABLE(timeout != 0); result = RT_EOK; thread = rt_thread_self(); @@ -221,10 +218,7 @@ rt_err_t rt_data_queue_pop(struct rt_data_queue *queue, RT_ASSERT(size != RT_NULL); /* current context checking */ - if (timeout != 0) - { - RT_DEBUG_SCHEDULER_AVAILABLE; - } + RT_DEBUG_SCHEDULER_AVAILABLE(timeout != 0); result = RT_EOK; thread = rt_thread_self(); |
