diff options
Diffstat (limited to 'libc/bionic/pthread_setname_np.cpp')
-rw-r--r-- | libc/bionic/pthread_setname_np.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/bionic/pthread_setname_np.cpp b/libc/bionic/pthread_setname_np.cpp index e0ecace..1ddf810 100644 --- a/libc/bionic/pthread_setname_np.cpp +++ b/libc/bionic/pthread_setname_np.cpp @@ -46,10 +46,6 @@ int pthread_setname_np(pthread_t t, const char* thread_name) { ErrnoRestorer errno_restorer; - if (thread_name == NULL) { - return EINVAL; - } - size_t thread_name_len = strlen(thread_name); if (thread_name_len >= MAX_TASK_COMM_LEN) { return ERANGE; |