vm.c: remove a useless check
authorAndy Wingo <wingo@pobox.com>
Mon, 21 May 2012 15:31:58 +0000 (17:31 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 May 2012 15:42:48 +0000 (17:42 +0200)
* libguile/vm.c: Remove a check for modules being booted.  If the module
  passed in is true, that is guaranteed to have been the case.  Passes a
  fresh bootstrap.

libguile/vm.c

index affec05..db5e58c 100644 (file)
@@ -610,8 +610,7 @@ resolve_variable (SCM what, SCM program_module)
 {
   if (SCM_LIKELY (scm_is_symbol (what)))
     {
-      if (SCM_LIKELY (scm_module_system_booted_p
-                      && scm_is_true (program_module)))
+      if (SCM_LIKELY (scm_is_true (program_module)))
         /* might longjmp */
         return scm_module_lookup (program_module, what);
       else