summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/stackallocatorinit.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 08:40:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 17:41:26 +0100
commit298b5ef16263149b524a05ecc691202484e318db (patch)
treef43c6e26eb918ca5165226c2982b42720e1ced66 /cpukit/score/src/stackallocatorinit.c
parentconfig: Simplify task stack allocator init (diff)
downloadrtems-298b5ef16263149b524a05ecc691202484e318db.tar.bz2
config: Initialize task stack allocator on demand
Register a custom task stack allocator initialization handler only if necessary.
Diffstat (limited to 'cpukit/score/src/stackallocatorinit.c')
-rw-r--r--cpukit/score/src/stackallocatorinit.c5
1 files changed, 1 insertions, 4 deletions
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() );
}