summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-16 21:36:27 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-04-16 21:36:27 (GMT)
commit71b7a186ef963b31529ecfd7467a32ef268ded62 (patch)
tree2ee4fd8dfd2655be4c6ff19efc1497a671047f20 /src
parent9c6b5a270c1f55efadcf5cea0cf680f6105e2918 (diff)
downloadhdf5-71b7a186ef963b31529ecfd7467a32ef268ded62.zip
hdf5-71b7a186ef963b31529ecfd7467a32ef268ded62.tar.gz
hdf5-71b7a186ef963b31529ecfd7467a32ef268ded62.tar.bz2
Delete unused line, shorten a comment, wrap some lines, add missing
semicolons and curly braces. NFCI.
Diffstat (limited to 'src')
-rw-r--r--src/H5Fvfd_swmr.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index c6bd7ee..538c8a5 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -1272,11 +1272,9 @@ H5F_vfd_swmr_reader_end_of_tick(H5F_t *f, bool entering_api)
*/
entries_added++;
j++;
-
}
- /* sanity checks to verify that the old and new indicies
- * are sorted as expected.
+ /* Verify that the old and new indices are sorted as expected.
*/
HDassert( ( i == 0 ) ||
( i >= old_mdf_idx_entries_used ) ||
@@ -1335,20 +1333,23 @@ H5F_vfd_swmr_reader_end_of_tick(H5F_t *f, bool entering_api)
f->shared->tick_num = tmp_tick_num;
/* Update end_of_tick */
- if ( H5F__vfd_swmr_update_end_of_tick_and_tick_num(f, FALSE) < 0 )
-
- HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, \
- "unable to update end of tick")
-
+ if (H5F__vfd_swmr_update_end_of_tick_and_tick_num(f, FALSE) < 0) {
+ HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL,
+ "unable to update end of tick");
+ }
}
/* Remove the entry from the EOT queue */
- if(H5F_vfd_swmr_remove_entry_eot(f) < 0)
- HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "unable to remove entry from EOT queue")
+ if(H5F_vfd_swmr_remove_entry_eot(f) < 0) {
+ HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL,
+ "unable to remove entry from EOT queue")
+ }
/* Re-insert the entry that corresponds to f onto the EOT queue */
- if(H5F_vfd_swmr_insert_entry_eot(f) < 0)
- HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "unable to insert entry into the EOT queue")
+ if(H5F_vfd_swmr_insert_entry_eot(f) < 0) {
+ HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL,
+ "unable to insert entry into the EOT queue")
+ }
#if 0 /* JRM */
HDfprintf(stderr, "--- reader EOT final index "