Skip to content

Commit

Permalink
LibPthread: Remove redundant return statement
Browse files Browse the repository at this point in the history
The pthread_exit() function doesn't return and is marked as such.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Jun 30, 2021
1 parent e375764 commit c0bd2c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Userland/Libraries/LibPthread/pthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ static void* pthread_create_helper(void* (*routine)(void*), void* argument, void
s_stack_size = stack_size;
void* ret_val = routine(argument);
pthread_exit(ret_val);
return nullptr;
}

static int create_thread(pthread_t* thread, void* (*entry)(void*), void* argument, PthreadAttrImpl* thread_params)
Expand Down

0 comments on commit c0bd2c0

Please sign in to comment.