diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-07 16:49:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-12 07:36:18 +0200 |
commit | d26b053d025dd754e48411057d818a7641de7a3b (patch) | |
tree | c2a0c86279a995ff89791d2c1bd9752339ac7b23 /cpukit/rtems/src/regionreturnsegment.c | |
parent | posix: Use a dedicated lock for scheduler changes (diff) | |
download | rtems-d26b053d025dd754e48411057d818a7641de7a3b.tar.bz2 |
rtems: Remove dead code
The heap protection enabled by RTEMS_DEBUG offers the same functionality
and more.
Diffstat (limited to 'cpukit/rtems/src/regionreturnsegment.c')
-rw-r--r-- | cpukit/rtems/src/regionreturnsegment.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c index 1af54f2252..aeff1df16c 100644 --- a/cpukit/rtems/src/regionreturnsegment.c +++ b/cpukit/rtems/src/regionreturnsegment.c @@ -18,14 +18,6 @@ #include "config.h" #endif -#ifdef RTEMS_REGION_SHRED_ON_FREE -#include <string.h> - -#ifndef RTEMS_REGION_FREE_SHRED_PATTERN -#define RTEMS_REGION_FREE_SHRED_PATTERN 0x00 -#endif -#endif - #include <rtems/system.h> #include <rtems/rtems/status.h> #include <rtems/rtems/support.h> @@ -41,9 +33,6 @@ rtems_status_code rtems_region_return_segment( { Objects_Locations location; rtems_status_code return_status; -#ifdef RTEMS_REGION_FREE_SHRED_PATTERN - uint32_t size; -#endif int status; Region_Control *the_region; @@ -53,12 +42,6 @@ rtems_status_code rtems_region_return_segment( switch ( location ) { case OBJECTS_LOCAL: -#ifdef RTEMS_REGION_FREE_SHRED_PATTERN - if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, &size ) ) - return_status = RTEMS_INVALID_ADDRESS; - else { - memset( segment, (RTEMS_REGION_FREE_SHRED_PATTERN & 0xFF), size ); -#endif status = _Region_Free_segment( the_region, segment ); if ( !status ) @@ -70,9 +53,6 @@ rtems_status_code rtems_region_return_segment( return RTEMS_SUCCESSFUL; } -#ifdef RTEMS_REGION_FREE_SHRED_PATTERN - } -#endif break; #if defined(RTEMS_MULTIPROCESSING) |