kernel: Explicitly ignoring _Swap return

Ignoring _Swap return where there is no treatment or nothing to do.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-09-11 18:45:27 -07:00 committed by Anas Nashif
commit 5884c7f54b
9 changed files with 11 additions and 11 deletions

View file

@ -41,7 +41,7 @@ void _impl_k_thread_abort(k_tid_t thread)
irq_unlock(key);
} else {
if (_current == thread) {
_Swap(key);
(void)_Swap(key);
CODE_UNREACHABLE;
}