summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipc.c b/src/ipc.c
index b97ba3008e..496ebf5bce 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -1320,8 +1320,9 @@ rt_err_t rt_mb_send_wait (rt_mailbox_t mb, rt_uint32_t value, rt_int32_t timeout
rt_uint32_t tick_delta;
/* parameter check */
- RT_ASSERT(mb != RT_NULL);
+ RT_ASSERT(mb != RT_NULL);
+ tick_delta = 0;
RT_OBJECT_HOOK_CALL(rt_object_put_hook, (&(mb->parent.parent)));
/* disable interrupt */