Skip to content

Commit

Permalink
coding guidelines: comply with MISRA C:2012 Rule 17.7 in arch
Browse files Browse the repository at this point in the history
- added explicit cast to void when returned value is expectedly ignored

Signed-off-by: frei tycho <tfrei@baumer.com>
  • Loading branch information
tychofrei02 authored and jhedberg committed May 4, 2024
1 parent 9a47ee0 commit 3068179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/core/x86_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1433,8 +1433,8 @@ int arch_buffer_validate(void *addr, size_t size, int write)
int ret = 0;

/* addr/size arbitrary, fix this up into an aligned region */
k_mem_region_align((uintptr_t *)&virt, &aligned_size,
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);
(void)k_mem_region_align((uintptr_t *)&virt, &aligned_size,
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);

for (size_t offset = 0; offset < aligned_size;
offset += CONFIG_MMU_PAGE_SIZE) {
Expand Down

0 comments on commit 3068179

Please sign in to comment.