[modify] if ... else if constructs to be terminated with an else clause, which other option is invalid and delete surplus space.

This commit is contained in:
chenchaoqun 2020-07-27 11:36:57 +08:00
parent e6b72153b4
commit b328c1cbac
1 changed files with 9 additions and 2 deletions

View File

@ -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;