forked from Imagelibrary/rtems
posix: Fix unused result warning
This commit is contained in:
@@ -219,8 +219,8 @@ void *mmap(
|
|||||||
} else if ( map_private ) {
|
} else if ( map_private ) {
|
||||||
/* private mappings of shared memory do not need special treatment. */
|
/* private mappings of shared memory do not need special treatment. */
|
||||||
is_shared_shm = false;
|
is_shared_shm = false;
|
||||||
posix_memalign( &mapping->addr, PAGE_SIZE, len );
|
err = posix_memalign( &mapping->addr, PAGE_SIZE, len );
|
||||||
if ( !mapping->addr ) {
|
if ( err != 0 ) {
|
||||||
free( mapping );
|
free( mapping );
|
||||||
errno = ENOMEM;
|
errno = ENOMEM;
|
||||||
return MAP_FAILED;
|
return MAP_FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user