summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/pheapgetinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/pheapgetinfo.c')
-rw-r--r--cpukit/score/src/pheapgetinfo.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/cpukit/score/src/pheapgetinfo.c b/cpukit/score/src/pheapgetinfo.c
index 1d62fc0673..2c4a287edd 100644
--- a/cpukit/score/src/pheapgetinfo.c
+++ b/cpukit/score/src/pheapgetinfo.c
@@ -1,4 +1,12 @@
/**
+ * @file
+ *
+ * @ingroup ScoreProtHeap
+ *
+ * @brief Protected Heap Handler implementation.
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -21,8 +29,6 @@ bool _Protected_heap_Get_information(
Heap_Information_block *the_info
)
{
- Heap_Get_information_status status;
-
if ( !the_heap )
return false;
@@ -30,11 +36,8 @@ bool _Protected_heap_Get_information(
return false;
_RTEMS_Lock_allocator();
- status = _Heap_Get_information( the_heap, the_info );
+ _Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
- if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
- return true;
-
- return false;
+ return true;
}