From c7744ee03b1b3b2efdb952dadd0727dba4b32d6a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 18 Feb 1998 19:34:51 +0000 Subject: Ralf Corsepius noted that there was a dead path in _Thread_Initialize. --- cpukit/score/src/thread.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c index a931a270df..b5c96dcfb3 100644 --- a/cpukit/score/src/thread.c +++ b/cpukit/score/src/thread.c @@ -437,22 +437,18 @@ boolean _Thread_Initialize( */ - if ( !stack ) { + if ( !stack_area ) { if ( !_Stack_Is_enough( stack_size ) ) actual_stack_size = STACK_MINIMUM_SIZE; else actual_stack_size = stack_size; - actual_stack_size = _Stack_Adjust_size( actual_stack_size ); - stack = stack_area; - - actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); + actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size ); if ( !actual_stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; - the_thread->Start.core_allocated_stack = TRUE; } else { stack = stack_area; -- cgit v1.2.3