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:
Flavio Ceolin 2018-09-18 12:40:54 -07:00 committed by Anas Nashif
commit d8837c6888
7 changed files with 18 additions and 16 deletions

View file

@ -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);