Changeset d26b053 in rtems


Ignore:
Timestamp:
Apr 7, 2016, 2:49:22 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0158a60
Parents:
9555341
git-author:
Sebastian Huber <sebastian.huber@…> (04/07/16 14:49:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/12/16 05:36:18)
Message:

rtems: Remove dead code

The heap protection enabled by RTEMS_DEBUG offers the same functionality
and more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/regionreturnsegment.c

    r9555341 rd26b053  
    1919#endif
    2020
    21 #ifdef RTEMS_REGION_SHRED_ON_FREE
    22 #include <string.h>
    23 
    24 #ifndef RTEMS_REGION_FREE_SHRED_PATTERN
    25 #define RTEMS_REGION_FREE_SHRED_PATTERN 0x00
    26 #endif
    27 #endif
    28 
    2921#include <rtems/system.h>
    3022#include <rtems/rtems/status.h>
     
    4234  Objects_Locations        location;
    4335  rtems_status_code        return_status;
    44 #ifdef RTEMS_REGION_FREE_SHRED_PATTERN
    45   uint32_t                 size;
    46 #endif
    4736  int                      status;
    4837  Region_Control          *the_region;
     
    5443
    5544      case OBJECTS_LOCAL:
    56 #ifdef RTEMS_REGION_FREE_SHRED_PATTERN
    57         if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, &size ) )
    58           return_status = RTEMS_INVALID_ADDRESS;
    59         else {
    60           memset( segment, (RTEMS_REGION_FREE_SHRED_PATTERN & 0xFF), size );
    61 #endif
    6245          status = _Region_Free_segment( the_region, segment );
    6346
     
    7154            return RTEMS_SUCCESSFUL;
    7255          }
    73 #ifdef RTEMS_REGION_FREE_SHRED_PATTERN
    74         }
    75 #endif
    7656        break;
    7757
Note: See TracChangeset for help on using the changeset viewer.