summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 3cf912d..55e258b 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -1843,8 +1843,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Fget_dset_no_attrs_hint(hid_t file_id,
- hbool_t *minimize)
+H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize)
{
H5VL_object_t *vol_obj = NULL;
herr_t ret_value = SUCCEED;
@@ -1853,23 +1852,14 @@ H5Fget_dset_no_attrs_hint(hid_t file_id,
H5TRACE2("e", "i*b", file_id, minimize);
if (NULL == minimize)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL,
- "out pointer 'minimize' cannot be NULL")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "out pointer 'minimize' cannot be NULL")
vol_obj = (H5VL_object_t *)H5I_object(file_id);
if (NULL == vol_obj)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid file identifier")
- if (0 > H5VL_file_get(
- vol_obj,
- H5VL_FILE_GET_MIN_DSET_OHDR_FLAG,
- H5P_DATASET_XFER_DEFAULT,
- H5_REQUEST_NULL,
- minimize))
- {
- HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL,
- "unable to get file's dataset header minimization flag")
- }
+ if (0 > H5VL_file_get(vol_obj, H5VL_FILE_GET_MIN_DSET_OHDR_FLAG, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, minimize))
+ HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "unable to get file's dataset header minimization flag")
done:
FUNC_LEAVE_API(ret_value)
@@ -1897,8 +1887,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Fset_dset_no_attrs_hint(hid_t file_id,
- hbool_t minimize)
+H5Fset_dset_no_attrs_hint(hid_t file_id, hbool_t minimize)
{
H5VL_object_t *vol_obj = NULL;
herr_t ret_value = SUCCEED;
@@ -1910,16 +1899,8 @@ H5Fset_dset_no_attrs_hint(hid_t file_id,
if (NULL == vol_obj)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid file identifier")
- if (0 > H5VL_file_optional(
- vol_obj,
- H5P_DATASET_XFER_DEFAULT,
- H5_REQUEST_NULL,
- H5VL_FILE_SET_MIN_DSET_OHDR_FLAG,
- minimize))
- {
- HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL,
- "unable to set file's dataset header minimization flag")
- }
+ if (0 > H5VL_file_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_FILE_SET_MIN_DSET_OHDR_FLAG, minimize))
+ HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "unable to set file's dataset header minimization flag")
done:
FUNC_LEAVE_API(ret_value)