summaryrefslogtreecommitdiffstats
path: root/src/H5HFspace.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-10-14 22:26:14 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-10-15 13:09:50 (GMT)
commit7705120f1e627ce60274225720e06d18a7062e85 (patch)
treed922eb33eca374d610475fd684b78593bafb6449 /src/H5HFspace.c
parent6f7605774874356b87b2d0fd9b15f1da7de8ef97 (diff)
downloadhdf5-7705120f1e627ce60274225720e06d18a7062e85.zip
hdf5-7705120f1e627ce60274225720e06d18a7062e85.tar.gz
hdf5-7705120f1e627ce60274225720e06d18a7062e85.tar.bz2
More merges from 1.10 comments and inits
Diffstat (limited to 'src/H5HFspace.c')
-rw-r--r--src/H5HFspace.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5HFspace.c b/src/H5HFspace.c
index 2744103..4544975 100644
--- a/src/H5HFspace.c
+++ b/src/H5HFspace.c
@@ -193,7 +193,7 @@ htri_t
H5HF_space_find(H5HF_hdr_t *hdr, hid_t dxpl_id, hsize_t request, H5HF_free_section_t **node)
{
htri_t node_found = FALSE; /* Whether an existing free list node was found */
- htri_t ret_value; /* Return value */
+ htri_t ret_value = FAIL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -294,11 +294,10 @@ H5HF_space_revert_root(const H5HF_hdr_t *hdr, hid_t dxpl_id)
HDassert(hdr);
/* Only need to scan the sections if the free space has been initialized */
- if (hdr->fspace) {
- /* Iterate over all sections, reseting the parent pointers in 'single' sections */
+ if (hdr->fspace)
+ /* Iterate over all sections, resetting the parent pointers in 'single' sections */
if (H5FS_sect_iterate(hdr->f, dxpl_id, hdr->fspace, H5HF_space_revert_root_cb, NULL) < 0)
HGOTO_ERROR(H5E_FSPACE, H5E_BADITER, FAIL, "can't iterate over sections to reset parent pointers")
- } /* end if */
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -385,12 +384,11 @@ H5HF_space_create_root(const H5HF_hdr_t *hdr, hid_t dxpl_id, H5HF_indirect_t *ro
HDassert(root_iblock);
/* Only need to scan the sections if the free space has been initialized */
- if (hdr->fspace) {
+ if (hdr->fspace)
/* Iterate over all sections, seting the parent pointers in 'single' sections to the new indirect
* block */
if (H5FS_sect_iterate(hdr->f, dxpl_id, hdr->fspace, H5HF_space_create_root_cb, root_iblock) < 0)
HGOTO_ERROR(H5E_FSPACE, H5E_BADITER, FAIL, "can't iterate over sections to set parent pointers")
- } /* end if */
done:
FUNC_LEAVE_NOAPI(ret_value)