kernel: Using boolean expression on ASSERT macros
ASSERT macro expects a boolean expression, making it explicit. MISRA-C rule 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
6fdc56d286
commit
d8837c6888
7 changed files with 18 additions and 16 deletions
|
@ -31,7 +31,7 @@ void _impl_k_thread_abort(k_tid_t thread)
|
|||
|
||||
key = irq_lock();
|
||||
|
||||
__ASSERT(!(thread->base.user_options & K_ESSENTIAL),
|
||||
__ASSERT((thread->base.user_options & K_ESSENTIAL) == 0,
|
||||
"essential thread aborted");
|
||||
|
||||
_k_thread_single_abort(thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue