arch: arc: Make statements evaluate boolean expressions
MISRA-C requires that the if statement has essentially Boolean type. MISRA-C rule 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
81d0e1981b
commit
3dcc76b6b9
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void configure_mpu_thread(struct k_thread *thread)
|
|||
void configure_mpu_stack_guard(struct k_thread *thread)
|
||||
{
|
||||
#if defined(CONFIG_USERSPACE)
|
||||
if (thread->thread_base.user_options & K_USER) {
|
||||
if ((thread->thread_base.user_options & K_USER) != 0) {
|
||||
/* the areas before and after the user stack of thread is
|
||||
* kernel only. These area can be used as stack guard.
|
||||
* -----------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue