fs/mmap/fs_rammap.c: Remove void * arithmetic

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2023-01-13 15:24:56 +04:00 committed by Xiang Xiao
parent 3577d2f055
commit 6db295481b
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ static int unmap_rammap(FAR struct task_group_s *group,
* simulate the unmapping.
*/
offset = start - entry->vaddr;
offset = (uintptr_t)start - (uintptr_t)entry->vaddr;
if (offset + length < entry->length)
{
ferr("ERROR: Cannot umap without unmapping to the end\n");