Some minor code cleanup.

This commit is contained in:
Moinak Ghosh 2013-07-05 22:22:11 +05:30
parent e10a13ad94
commit 8b73303488

View file

@ -1000,17 +1000,12 @@ process_blocks:
for (j=0; j < sub_i; j++) { for (j=0; j < sub_i; j++) {
hash_entry_t *he = NULL; 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); he = db_lookup_insert_s(cfg, sim_ck, 0, seg_offset, 0, 1);
} else {
he = NULL;
}
if (he) { if (he) {
*((uint64_t *)tgt) = he->item_offset; *((uint64_t *)tgt) = he->item_offset;
} else { } else {
*((uint64_t *)tgt) = UINT64_MAX; *((uint64_t *)tgt) = UINT64_MAX;
} }
crc = *((uint64_t *)sim_ck);
sim_ck += cfg->similarity_cksum_sz; sim_ck += cfg->similarity_cksum_sz;
tgt += cfg->similarity_cksum_sz; tgt += cfg->similarity_cksum_sz;
} }