From 44e987192e47910b8551a8f9409e9cd6133695d1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 22 Dec 2015 09:40:48 +0100 Subject: score: Avoid dead code in global construction Update #2514. --- cpukit/score/src/threadglobalconstruction.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'cpukit/score/src/threadglobalconstruction.c') diff --git a/cpukit/score/src/threadglobalconstruction.c b/cpukit/score/src/threadglobalconstruction.c index c7c10d9143..56a6df11a9 100644 --- a/cpukit/score/src/threadglobalconstruction.c +++ b/cpukit/score/src/threadglobalconstruction.c @@ -44,10 +44,9 @@ #define EXECUTE_GLOBAL_CONSTRUCTORS #endif -void *_Thread_Global_construction( void ) +void _Thread_Global_construction( Thread_Entry entry_point ) { Thread_Control *executing; - Thread_Entry entry_point; #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) /* @@ -58,19 +57,6 @@ void *_Thread_Global_construction( void ) INIT_NAME(); #endif -#if defined(RTEMS_POSIX_API) - if ( Configuration_RTEMS_API.number_of_initialization_tasks > 0 ) { -#endif - entry_point = (Thread_Entry) - Configuration_RTEMS_API.User_initialization_tasks_table[ 0 ].entry_point; -#if defined(RTEMS_POSIX_API) - } else { - entry_point = (Thread_Entry) - Configuration_POSIX_API - .User_initialization_threads_table[ 0 ].thread_entry; - } -#endif - _Thread_Disable_dispatch(); executing = _Thread_Executing; @@ -86,6 +72,4 @@ void *_Thread_Global_construction( void ) _Thread_Enable_dispatch(); _Assert_Not_reached(); - - return NULL; } -- cgit v1.2.3