diff options
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/regionextend.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c index 0531381328..f4b6c93c2d 100644 --- a/cpukit/rtems/src/regionextend.c +++ b/cpukit/rtems/src/regionextend.c @@ -49,7 +49,7 @@ rtems_status_code rtems_region_extend( ) { uintptr_t amount_extended; - Heap_Extend_status heap_status; + bool extend_ok; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; @@ -64,21 +64,19 @@ rtems_status_code rtems_region_extend( case OBJECTS_LOCAL: - heap_status = _Heap_Extend( + extend_ok = _Heap_Extend( &the_region->Memory, starting_address, length, &amount_extended ); - if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { + if ( extend_ok ) { the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; - } else if ( heap_status == HEAP_EXTEND_ERROR ) { + } else { return_status = RTEMS_INVALID_ADDRESS; - } else /* if ( heap_status == HEAP_EXTEND_NOT_IMPLEMENTED ) */ { - return_status = RTEMS_NOT_IMPLEMENTED; } break; |