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:
parent
8a9ba10c2c
commit
5884c7f54b
9 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue