Skip to content

Commit 3068179

Browse files
tychofrei02jhedberg
authored andcommitted
coding guidelines: comply with MISRA C:2012 Rule 17.7 in arch
- added explicit cast to void when returned value is expectedly ignored Signed-off-by: frei tycho <[email protected]>
1 parent 9a47ee0 commit 3068179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/core/x86_mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,8 @@ int arch_buffer_validate(void *addr, size_t size, int write)
14331433
int ret = 0;
14341434

14351435
/* addr/size arbitrary, fix this up into an aligned region */
1436-
k_mem_region_align((uintptr_t *)&virt, &aligned_size,
1437-
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);
1436+
(void)k_mem_region_align((uintptr_t *)&virt, &aligned_size,
1437+
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);
14381438

14391439
for (size_t offset = 0; offset < aligned_size;
14401440
offset += CONFIG_MMU_PAGE_SIZE) {

0 commit comments

Comments
 (0)