arch: Making body of selection statement a compound statement
MISRA-C rule 15.6 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
3c4bb10127
commit
001ad8b6c2
3 changed files with 9 additions and 6 deletions
|
@ -58,9 +58,9 @@ static int dcache_available(void)
|
|||
|
||||
static void dcache_dc_ctrl(u32_t dcache_en_mask)
|
||||
{
|
||||
if (!dcache_available())
|
||||
return;
|
||||
_arc_v2_aux_reg_write(_ARC_V2_DC_CTRL, dcache_en_mask);
|
||||
if (dcache_available()) {
|
||||
_arc_v2_aux_reg_write(_ARC_V2_DC_CTRL, dcache_en_mask);
|
||||
}
|
||||
}
|
||||
|
||||
static void dcache_enable(void)
|
||||
|
@ -107,8 +107,9 @@ static void dcache_flush_mlines(u32_t start_addr, u32_t size)
|
|||
/* wait for flush completion */
|
||||
do {
|
||||
if ((_arc_v2_aux_reg_read(_ARC_V2_DC_CTRL) &
|
||||
DC_CTRL_FLUSH_STATUS) == 0)
|
||||
DC_CTRL_FLUSH_STATUS) == 0) {
|
||||
break;
|
||||
}
|
||||
} while (1);
|
||||
start_addr += DCACHE_LINE_SIZE;
|
||||
} while (start_addr <= end_addr);
|
||||
|
|
|
@ -100,8 +100,9 @@ void _irq_spurious(void *unused)
|
|||
{
|
||||
ARG_UNUSED(unused);
|
||||
printk("_irq_spurious(). Spinning...\n");
|
||||
for (;;)
|
||||
for (;;) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DYNAMIC_INTERRUPTS
|
||||
|
|
|
@ -208,8 +208,9 @@ void k_float_disable(struct k_thread *thread)
|
|||
_FpAccessDisable();
|
||||
_kernel.current_fp = (struct k_thread *)0;
|
||||
} else {
|
||||
if (_kernel.current_fp == thread)
|
||||
if (_kernel.current_fp == thread) {
|
||||
_kernel.current_fp = (struct k_thread *)0;
|
||||
}
|
||||
}
|
||||
|
||||
irq_unlock(imask);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue