mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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:
committed by
Anas Nashif
parent
da49f2e440
commit
1663ca8590
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user