aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-25 22:14:14 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-25 22:14:14 +0000
commit712008de20f488be96f6b06e72bb5f5812f6b444 (patch)
tree6a7a5a2358956ada4b3059c805aa8d0de4969e44 /thread_pthread.c
parent92b26be79958c261fcb242560d328cd43896b70d (diff)
downloadruby-712008de20f488be96f6b06e72bb5f5812f6b444.tar.gz
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 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