فهرست منبع

LibPthread: Remove redundant return statement

The pthread_exit() function doesn't return and is marked as such.
Gunnar Beutner 4 سال پیش
والد
کامیت
c0bd2c0691
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      Userland/Libraries/LibPthread/pthread.cpp

+ 0 - 1
Userland/Libraries/LibPthread/pthread.cpp

@@ -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)