[PATCH 2/3] score: Simplify _Objects_Initialize_information()

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 6 12:37:12 UTC 2018


There is no need to make the minimum identifier dependent on the maximum
per allocation.
---
 cpukit/score/src/objectinitializeinformation.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c
index 23c7819bfa..9905349213 100644
--- a/cpukit/score/src/objectinitializeinformation.c
+++ b/cpukit/score/src/objectinitializeinformation.c
@@ -39,7 +39,6 @@ void _Objects_Do_initialize_information(
 )
 {
   static Objects_Control *null_local_table = NULL;
-  uint32_t                minimum_index;
   Objects_Maximum         maximum_per_allocation;
 
   information->the_api            = the_api;
@@ -88,9 +87,8 @@ void _Objects_Do_initialize_information(
   /*
    *  Calculate minimum and maximum Id's
    */
-  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
   information->minimum_id =
-    _Objects_Build_id( the_api, the_class, _Objects_Local_node, minimum_index );
+    _Objects_Build_id( the_api, the_class, _Objects_Local_node, 1 );
 
   /*
    *  Calculate the maximum name length
-- 
2.16.4




More information about the devel mailing list