summaryrefslogtreecommitdiffstats
path: root/src/H5VLdyn_ops.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-08-03 12:57:29 (GMT)
committerGitHub <noreply@github.com>2023-08-03 12:57:29 (GMT)
commit7fc8531b767855e69fb4016783a1131ba581fd5b (patch)
treea243310b99da59c858ae4eaeed8c452e0177bba4 /src/H5VLdyn_ops.c
parenta77d8bfcd7d066c6759b0346c02cbd612f90b7c2 (diff)
downloadhdf5-7fc8531b767855e69fb4016783a1131ba581fd5b.zip
hdf5-7fc8531b767855e69fb4016783a1131ba581fd5b.tar.gz
hdf5-7fc8531b767855e69fb4016783a1131ba581fd5b.tar.bz2
Merge Made HGOTO_ERROR a do-while loop changes from develop (#3334)
Diffstat (limited to 'src/H5VLdyn_ops.c')
-rw-r--r--src/H5VLdyn_ops.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/H5VLdyn_ops.c b/src/H5VLdyn_ops.c
index 3f6a3d7..9d2e287 100644
--- a/src/H5VLdyn_ops.c
+++ b/src/H5VLdyn_ops.c
@@ -201,24 +201,24 @@ H5VL__register_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *o
/* Check for duplicate operation */
if (H5VL_opt_ops_g[subcls]) {
if (NULL != H5SL_search(H5VL_opt_ops_g[subcls], op_name))
- HGOTO_ERROR(H5E_VOL, H5E_EXISTS, FAIL, "operation name already exists")
+ HGOTO_ERROR(H5E_VOL, H5E_EXISTS, FAIL, "operation name already exists");
} /* end if */
else {
/* Create skip list for operation of this subclass */
if (NULL == (H5VL_opt_ops_g[subcls] = H5SL_create(H5SL_TYPE_STR, NULL)))
- HGOTO_ERROR(H5E_VOL, H5E_CANTCREATE, FAIL, "can't create skip list for operations")
+ HGOTO_ERROR(H5E_VOL, H5E_CANTCREATE, FAIL, "can't create skip list for operations");
} /* end else */
/* Register new operation */
if (NULL == (new_op = H5FL_CALLOC(H5VL_dyn_op_t)))
- HGOTO_ERROR(H5E_VOL, H5E_CANTALLOC, FAIL, "can't allocate memory for dynamic operation info")
+ HGOTO_ERROR(H5E_VOL, H5E_CANTALLOC, FAIL, "can't allocate memory for dynamic operation info");
if (NULL == (new_op->op_name = H5MM_strdup(op_name)))
- HGOTO_ERROR(H5E_VOL, H5E_CANTALLOC, FAIL, "can't allocate name for dynamic operation info")
+ HGOTO_ERROR(H5E_VOL, H5E_CANTALLOC, FAIL, "can't allocate name for dynamic operation info");
new_op->op_val = H5VL_opt_vals_g[subcls]++;
/* Insert into subclass's skip list */
if (H5SL_insert(H5VL_opt_ops_g[subcls], new_op, new_op->op_name) < 0)
- HGOTO_ERROR(H5E_VOL, H5E_CANTINSERT, FAIL, "can't insert operation info into skip list")
+ HGOTO_ERROR(H5E_VOL, H5E_CANTINSERT, FAIL, "can't insert operation info into skip list");
/* Return the next operation value to the caller */
*op_val = new_op->op_val;
@@ -279,13 +279,13 @@ H5VL__find_opt_operation(H5VL_subclass_t subcls, const char *op_name, int *op_va
/* Search for dynamic operation with correct name */
if (NULL == (dyn_op = H5SL_search(H5VL_opt_ops_g[subcls], op_name)))
- HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered")
+ HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered");
/* Set operation value for user */
*op_val = dyn_op->op_val;
} /* end if */
else
- HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered")
+ HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -317,7 +317,7 @@ H5VL__unregister_opt_operation(H5VL_subclass_t subcls, const char *op_name)
/* Search for dynamic operation with correct name */
if (NULL == (dyn_op = H5SL_remove(H5VL_opt_ops_g[subcls], op_name)))
- HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered")
+ HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered");
/* Release the info for the operation */
H5VL__release_dyn_op(dyn_op);
@@ -325,12 +325,12 @@ H5VL__unregister_opt_operation(H5VL_subclass_t subcls, const char *op_name)
/* Close the skip list, if no more operations in it */
if (0 == H5SL_count(H5VL_opt_ops_g[subcls])) {
if (H5SL_close(H5VL_opt_ops_g[subcls]) < 0)
- HGOTO_ERROR(H5E_VOL, H5E_CANTCLOSEOBJ, FAIL, "can't close dyn op skip list")
+ HGOTO_ERROR(H5E_VOL, H5E_CANTCLOSEOBJ, FAIL, "can't close dyn op skip list");
H5VL_opt_ops_g[subcls] = NULL;
} /* end if */
} /* end if */
else
- HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered")
+ HGOTO_ERROR(H5E_VOL, H5E_NOTFOUND, FAIL, "operation name isn't registered");
done:
FUNC_LEAVE_NOAPI(ret_value)