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:
parent
971ca501b9
commit
073bb31c3b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue