提交 b328c1cb 编写于 作者: C chenchaoqun

[modify] if ... else if constructs to be terminated with an else clause, which...

[modify] if ... else if constructs to be terminated with an else clause, which other option is invalid and delete surplus space.
上级 e6b72153
......@@ -1080,6 +1080,13 @@ rt_err_t rt_event_send(rt_event_t event, rt_uint32_t set)
status = RT_EOK;
}
}
else
{
/* enable interrupt */
rt_hw_interrupt_enable(level);
return -RT_EINVAL;
}
/* move node to the next */
n = n->next;
......@@ -1186,10 +1193,10 @@ rt_err_t rt_event_recv(rt_event_t event,
{
/* no waiting */
thread->error = -RT_ETIMEOUT;
/* enable interrupt */
rt_hw_interrupt_enable(level);
return -RT_ETIMEOUT;
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册