Skip to content

Commit cbd9b37

Browse files
DeHessaescolar
authored andcommitted
coding guidelines: comply with MISRA Rule 20.9
- avoid to use undefined macros in #if expressions Signed-off-by: Hess Nathan <[email protected]>
1 parent 3d39926 commit cbd9b37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/core/prep_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ FUNC_NORETURN void z_prep_c(void *arg)
6565
#endif
6666
#endif
6767

68-
#if CONFIG_X86_STACK_PROTECTION
68+
#ifdef CONFIG_X86_STACK_PROTECTION
6969
unsigned int num_cpus = arch_num_cpus();
7070

7171
for (int i = 0; i < num_cpus; i++) {

arch/x86/core/x86_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ void z_x86_mmu_init(void)
13551355
#endif
13561356
}
13571357

1358-
#if CONFIG_X86_STACK_PROTECTION
1358+
#ifdef CONFIG_X86_STACK_PROTECTION
13591359
__pinned_func
13601360
void z_x86_set_stack_guard(k_thread_stack_t *stack)
13611361
{

0 commit comments

Comments
 (0)