From a408b56e129bf36e95975c80e957de1bed4a5839 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 6 Jul 2022 07:27:57 -0400 Subject: [PATCH] arch: mips: add mising braces to single line if statements Following zephyr's style guideline, all if statements, including single line statements shall have braces. Signed-off-by: Anas Nashif --- arch/mips/core/irq_manage.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/mips/core/irq_manage.c b/arch/mips/core/irq_manage.c index e6339845c7a..7af1a3389bd 100644 --- a/arch/mips/core/irq_manage.c +++ b/arch/mips/core/irq_manage.c @@ -72,8 +72,9 @@ void z_mips_enter_irq(uint32_t ipending) int index; struct _isr_table_entry *ite; - if (IS_ENABLED(CONFIG_TRACING_ISR)) + if (IS_ENABLED(CONFIG_TRACING_ISR)) { sys_trace_isr_enter(); + } index = find_lsb_set(ipending) - 1; ipending &= ~BIT(index); @@ -82,14 +83,16 @@ void z_mips_enter_irq(uint32_t ipending) ite->isr(ite->arg); - if (IS_ENABLED(CONFIG_TRACING_ISR)) + if (IS_ENABLED(CONFIG_TRACING_ISR)) { sys_trace_isr_exit(); + } } _current_cpu->nested--; - if (IS_ENABLED(CONFIG_STACK_SENTINEL)) + if (IS_ENABLED(CONFIG_STACK_SENTINEL)) { z_check_stack_sentinel(); + } } #ifdef CONFIG_DYNAMIC_INTERRUPTS