From 001ea45b401ad9ee59b04e16e1ff759c328b0d81 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Mon, 28 Dec 2015 04:28:35 -0500 Subject: [PATCH] epoch: Remove redundant branch in delref. --- src/ck_epoch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ck_epoch.c b/src/ck_epoch.c index f45dd2e..7ee2167 100644 --- a/src/ck_epoch.c +++ b/src/ck_epoch.c @@ -164,8 +164,7 @@ _ck_epoch_delref(struct ck_epoch_record *record, other = &record->local.bucket[(i + 1) & CK_EPOCH_SENSE_MASK]; if (other->count > 0 && - ((int)(current->epoch - other->epoch) < 0 || - (current->epoch - other->epoch) > 1)) { + ((int)(current->epoch - other->epoch) < 0)) { /* * The other epoch value is actually the newest, * transition to it.