1
0
Fork 0
forked from nuttx/nuttx-update

mm/map/vm_region.c: Fix formatting error

mm/map/vm_region.c:131:7: error: If statement followed by garbage
This commit is contained in:
Ville Juven 2024-08-15 14:53:41 +03:00 committed by Alan Carvalho de Assis
parent 971ca501b9
commit 073bb31c3b

View file

@ -128,8 +128,10 @@ FAR void *vm_map_region(uintptr_t paddr, size_t size)
return (FAR void *)((uintptr_t)vaddr + (MM_PGMASK & paddr));
error:
if (i) /* undo alway mapped pages */
if (i)
{
/* Undo alway mapped pages */
up_shmdt((uintptr_t)vaddr, i);
}