summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/objectallocate.c')
-rw-r--r--cpukit/score/src/objectallocate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c
index 2bac4d3378..3a2d418b7a 100644
--- a/cpukit/score/src/objectallocate.c
+++ b/cpukit/score/src/objectallocate.c
@@ -46,23 +46,23 @@ Objects_Control *_Objects_Allocate(
* If the list is empty then we are out of objects and need to
* extend information base.
*/
-
+
if ( !the_object ) {
_Objects_Extend_information( information );
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
}
-
+
if ( the_object ) {
uint32_t block;
-
+
block = _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
-
+
information->inactive_per_block[ block ]--;
information->inactive--;
}
}
-
+
return the_object;
}