From 298b5ef16263149b524a05ecc691202484e318db Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Nov 2020 08:40:25 +0100 Subject: config: Initialize task stack allocator on demand Register a custom task stack allocator initialization handler only if necessary. --- cpukit/score/src/stackallocatorinit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/score/src/stackallocatorinit.c') diff --git a/cpukit/score/src/stackallocatorinit.c b/cpukit/score/src/stackallocatorinit.c index 412e3142b3..31e239bd46 100644 --- a/cpukit/score/src/stackallocatorinit.c +++ b/cpukit/score/src/stackallocatorinit.c @@ -45,8 +45,5 @@ void _Stack_Allocator_do_initialize( void ) rtems_stack_allocate_init_hook init_hook; init_hook = rtems_configuration_get_stack_allocate_init_hook(); - - if ( init_hook != NULL ) { - (*init_hook )( rtems_configuration_get_stack_space_size() ); - } + ( *init_hook )( rtems_configuration_get_stack_space_size() ); } -- cgit v1.2.3