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>
This commit is contained in:
Anas Nashif 2022-07-06 07:27:57 -04:00
commit a408b56e12

View file

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