From 8b73303488c432b44c95c1411d4c9f018161946a Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Fri, 5 Jul 2013 22:22:11 +0530 Subject: [PATCH] Some minor code cleanup. --- rabin/rabin_dedup.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rabin/rabin_dedup.c b/rabin/rabin_dedup.c index 9197676..83414c6 100755 --- a/rabin/rabin_dedup.c +++ b/rabin/rabin_dedup.c @@ -1000,17 +1000,12 @@ process_blocks: for (j=0; j < sub_i; j++) { hash_entry_t *he = NULL; - if (j > 0 && crc != *((uint64_t *)sim_ck)) { - he = db_lookup_insert_s(cfg, sim_ck, 0, seg_offset, 0, 1); - } else { - he = NULL; - } + he = db_lookup_insert_s(cfg, sim_ck, 0, seg_offset, 0, 1); if (he) { *((uint64_t *)tgt) = he->item_offset; } else { *((uint64_t *)tgt) = UINT64_MAX; } - crc = *((uint64_t *)sim_ck); sim_ck += cfg->similarity_cksum_sz; tgt += cfg->similarity_cksum_sz; }