summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/variable.c b/variable.c
index b04d0f6711..5c041e92ac 100644
--- a/variable.c
+++ b/variable.c
@@ -2722,9 +2722,7 @@ rb_autoload_load(VALUE module, ID name)
arguments.flag = ce->flag & (CONST_DEPRECATED | CONST_VISIBILITY_MASK);
// Only one thread will enter here at a time:
- VALUE result = rb_mutex_synchronize(arguments.mutex, autoload_try_load, (VALUE)&arguments);
-
- return result;
+ return rb_mutex_synchronize(arguments.mutex, autoload_try_load, (VALUE)&arguments);
}
VALUE