Skip to content

Commit ef639ef

Browse files
ndrs-psthenrikbrixandersen
authored andcommitted
style: kernel: comply with MISRA C:2012 Rule 15.6
Add missing braces to comply with MISRA C:2012 Rule 15.6 and also following Zephyr's style guideline. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent 1bcae0e commit ef639ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/mmu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,9 @@ void k_mem_map_phys_bare(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32
887887
num_bits = adjusted_sz / CONFIG_MMU_PAGE_SIZE;
888888
offset = virt_to_bitmap_offset(adjusted_start, adjusted_sz);
889889
if (sys_bitarray_test_and_set_region(
890-
&virt_region_bitmap, num_bits, offset, true))
890+
&virt_region_bitmap, num_bits, offset, true)) {
891891
goto fail;
892+
}
892893
}
893894
} else {
894895
/* Obtain an appropriately sized chunk of virtual memory */

0 commit comments

Comments
 (0)