summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-25 22:14:14 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-25 22:14:14 (GMT)
commit894847a5de4789fd4f34f5ab13e65def80c316cc (patch)
tree6a7a5a2358956ada4b3059c805aa8d0de4969e44 /thread_pthread.c
parent70a8a6d3eb20e4b251191d8cae06ee2453458253 (diff)
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 92ec66a..a12619f 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