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 <tfrei@baumer.com>
This commit is contained in:
parent
9a47ee00fa
commit
30681799e8
1 changed files with 2 additions and 2 deletions
|
|
@ -1433,8 +1433,8 @@ int arch_buffer_validate(void *addr, size_t size, int write)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
/* addr/size arbitrary, fix this up into an aligned region */
|
/* addr/size arbitrary, fix this up into an aligned region */
|
||||||
k_mem_region_align((uintptr_t *)&virt, &aligned_size,
|
(void)k_mem_region_align((uintptr_t *)&virt, &aligned_size,
|
||||||
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);
|
(uintptr_t)addr, size, CONFIG_MMU_PAGE_SIZE);
|
||||||
|
|
||||||
for (size_t offset = 0; offset < aligned_size;
|
for (size_t offset = 0; offset < aligned_size;
|
||||||
offset += CONFIG_MMU_PAGE_SIZE) {
|
offset += CONFIG_MMU_PAGE_SIZE) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue