From 5f869f818128523027888098628501e23cdf465d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Lindqvist?= Date: Tue, 15 Nov 2016 05:57:40 +0100 Subject: [PATCH] VM: the else clause is not necessary --- vm/mark_bits.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/vm/mark_bits.hpp b/vm/mark_bits.hpp index d1307933fe..efd66b339c 100644 --- a/vm/mark_bits.hpp +++ b/vm/mark_bits.hpp @@ -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 -- 2.34.1