Be brief: turn 7 lines of if-else to one line of ?:. Be sensible: don't

assert a pointer we just dereferenced is non-NULL.
This commit is contained in:
David Young
2020-03-30 12:22:13 -05:00
parent 78fac0241a
commit 7d50e9c89e

View File

@@ -1755,16 +1755,7 @@ H5PB_vfd_swmr__update_index(H5F_t *f,
ie_ptr->tick_of_last_change = shared->tick_num;
ie_ptr->clean = !entry->is_dirty;
if ( ie_ptr->clean ) {
ie_ptr->tick_of_last_flush = shared->tick_num;
} else {
ie_ptr->tick_of_last_flush = 0;
}
HDassert(ie_ptr);
ie_ptr->tick_of_last_flush = ie_ptr->clean ? shared->tick_num : 0;
}
/* scan the metadata file index for entries that don't appear in the