epoch: Remove redundant branch in delref.

ck_pring
Samy Al Bahra 9 years ago
parent 80a9b6ff9c
commit 001ea45b40

@ -164,8 +164,7 @@ _ck_epoch_delref(struct ck_epoch_record *record,
other = &record->local.bucket[(i + 1) & other = &record->local.bucket[(i + 1) &
CK_EPOCH_SENSE_MASK]; CK_EPOCH_SENSE_MASK];
if (other->count > 0 && if (other->count > 0 &&
((int)(current->epoch - other->epoch) < 0 || ((int)(current->epoch - other->epoch) < 0)) {
(current->epoch - other->epoch) > 1)) {
/* /*
* The other epoch value is actually the newest, * The other epoch value is actually the newest,
* transition to it. * transition to it.

Loading…
Cancel
Save