Skip to content

Commit a408b56

Browse files
committed
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 <anas.nashif@intel.com>
1 parent 516625e commit a408b56

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

arch/mips/core/irq_manage.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ void z_mips_enter_irq(uint32_t ipending)
7272
int index;
7373
struct _isr_table_entry *ite;
7474

75-
if (IS_ENABLED(CONFIG_TRACING_ISR))
75+
if (IS_ENABLED(CONFIG_TRACING_ISR)) {
7676
sys_trace_isr_enter();
77+
}
7778

7879
index = find_lsb_set(ipending) - 1;
7980
ipending &= ~BIT(index);
@@ -82,14 +83,16 @@ void z_mips_enter_irq(uint32_t ipending)
8283

8384
ite->isr(ite->arg);
8485

85-
if (IS_ENABLED(CONFIG_TRACING_ISR))
86+
if (IS_ENABLED(CONFIG_TRACING_ISR)) {
8687
sys_trace_isr_exit();
88+
}
8789
}
8890

8991
_current_cpu->nested--;
9092

91-
if (IS_ENABLED(CONFIG_STACK_SENTINEL))
93+
if (IS_ENABLED(CONFIG_STACK_SENTINEL)) {
9294
z_check_stack_sentinel();
95+
}
9396
}
9497

9598
#ifdef CONFIG_DYNAMIC_INTERRUPTS

0 commit comments

Comments
 (0)