kernel: Ignore _pend_current_thread return in some cases

There are some cases that there is nothing to do with
_pend_current_thread() return (that is _Swap return value).

As MISRA-C requires that all non-void functions have their
return value checked, we are explicitly ignoring it when there is
nothing to do.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin
2018-09-11 19:32:59 -07:00
committed by Anas Nashif
parent da49f2e440
commit 1663ca8590
3 changed files with 4 additions and 4 deletions

View File

@@ -206,7 +206,7 @@ u32_t _impl_k_timer_status_sync(struct k_timer *timer)
if (result == 0) {
if (timer->timeout.delta_ticks_from_prev != _INACTIVE) {
/* wait for timer to expire or stop */
_pend_current_thread(key, &timer->wait_q, K_FOREVER);
(void)_pend_current_thread(key, &timer->wait_q, K_FOREVER);
/* get updated timer status */
key = irq_lock();