summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 90db98d..1262b7f 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -533,21 +533,12 @@ H5P_close(void *_plist)
H5P_class_t
H5Pget_class(hid_t plist_id)
{
- H5I_type_t group;
H5P_class_t ret_value = H5P_NO_CLASS;
FUNC_ENTER(H5Pget_class, H5P_NO_CLASS);
H5TRACE1("p","i",plist_id);
- if ((group = H5I_get_type(plist_id)) < 0 ||
- group >= H5I_TEMPLATE_MAX ||
- group < H5I_TEMPLATE_0) {
- HRETURN_ERROR(H5E_ATOM, H5E_BADATOM, H5P_NO_CLASS,
- "not a property list");
- }
-
- ret_value = (H5P_class_t)(group - H5I_TEMPLATE_0);
-
+ ret_value = H5P_get_class(plist_id);
FUNC_LEAVE(ret_value);
}