diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-19 15:30:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-11-26 11:10:21 +0100 |
commit | bc175a1cabdccfc28deee3ae67ff5e9a0b5aef49 (patch) | |
tree | d581896d8efcab8b471502a9b79c541363509002 /cpukit/rtems/src | |
parent | config: Clarify the use of pragmas (diff) | |
download | rtems-bc175a1cabdccfc28deee3ae67ff5e9a0b5aef49.tar.bz2 |
Avoid INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL
Replace a runtime check with a compile time assertion. This makes the
INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL obsolete.
Update #4181.
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r-- | cpukit/rtems/src/taskinitusers.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/rtems/src/taskinitusers.c b/cpukit/rtems/src/taskinitusers.c index 0b23d8bc86..f21c061670 100644 --- a/cpukit/rtems/src/taskinitusers.c +++ b/cpukit/rtems/src/taskinitusers.c @@ -29,7 +29,6 @@ void _RTEMS_tasks_Initialize_user_task( void ) rtems_id id; rtems_status_code return_value; const rtems_initialization_tasks_table *user_task; - rtems_task_entry entry_point; user_task = &_RTEMS_tasks_User_task_table; return_value = rtems_task_create( @@ -44,14 +43,9 @@ void _RTEMS_tasks_Initialize_user_task( void ) _Internal_error( INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED ); } - entry_point = user_task->entry_point; - if ( entry_point == NULL ) { - _Internal_error( INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL ); - } - return_value = rtems_task_start( id, - entry_point, + user_task->entry_point, user_task->argument ); _Assert( rtems_is_status_successful( return_value ) ); |