kernel: stack: Making if's body a compound statement
MISRA-C rule 15.6 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a406b88fca
commit
dfbe03249d
1 changed files with 2 additions and 1 deletions
|
@ -155,8 +155,9 @@ int _impl_k_stack_pop(struct k_stack *stack, u32_t *data, s32_t timeout)
|
|||
}
|
||||
|
||||
result = _pend_current_thread(key, &stack->wait_q, timeout);
|
||||
if (result == -EAGAIN)
|
||||
if (result == -EAGAIN) {
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
*data = (u32_t)_current->base.swap_data;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue