summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread_sync.c b/thread_sync.c
index 36ed71bf88..61e952be41 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -407,9 +407,7 @@ rb_mutex_unlock(VALUE self)
static void
rb_mutex_abandon_keeping_mutexes(rb_thread_t *th)
{
- if (th->keeping_mutexes) {
- rb_mutex_abandon_all(th->keeping_mutexes);
- }
+ rb_mutex_abandon_all(th->keeping_mutexes);
th->keeping_mutexes = NULL;
}