]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: the else clause is not necessary
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 15 Nov 2016 04:57:40 +0000 (05:57 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 15 Nov 2016 04:57:40 +0000 (05:57 +0100)
vm/mark_bits.hpp

index d1307933fe9b33bf5e7e641a1d978b54cb1ddd06..efd66b339c34f0fc5811cc233f015ffdcb7f25fc 100644 (file)
@@ -118,10 +118,9 @@ struct mark_bits {
         cell clear_bit = rightmost_clear_bit(mask);
         return line_block(index * mark_bits_granularity + bit_index +
                           clear_bit);
-      } else {
-        // No unmarked blocks on this page. Keep looking
-        bit_index = 0;
       }
+      // No unmarked blocks on this page. Keep looking
+      bit_index = 0;
     }
 
     // No unmarked blocks were found
@@ -138,10 +137,9 @@ struct mark_bits {
         // Found an marked block on this page. Stop, it's hammer time
         cell set_bit = rightmost_set_bit(mask);
         return line_block(index * mark_bits_granularity + bit_index + set_bit);
-      } else {
-        // No marked blocks on this page. Keep looking
-        bit_index = 0;
       }
+      // No marked blocks on this page. Keep looking
+      bit_index = 0;
     }
 
     // No marked blocks were found