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:
Flavio Ceolin 2018-11-01 20:50:25 -07:00 committed by Anas Nashif
commit dfbe03249d

View file

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