From 894847a5de4789fd4f34f5ab13e65def80c316cc Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 25 Aug 2018 22:14:14 +0000 Subject: thread_pthread.c (ubf_wakeup_thread): `th' is never NULL git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thread_pthread.c b/thread_pthread.c index 92ec66af1e..a12619f92a 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1315,8 +1315,7 @@ static void ubf_wakeup_thread(rb_thread_t *th) { thread_debug("thread_wait_queue_wakeup (%"PRI_THREAD_ID")\n", thread_id_str(th)); - if (th) - pthread_kill(th->thread_id, SIGVTALRM); + pthread_kill(th->thread_id, SIGVTALRM); } static void -- cgit v1.2.3