diff --git a/src/H5I.c b/src/H5I.c index 5cfad0378d8..60282b3aa06 100644 --- a/src/H5I.c +++ b/src/H5I.c @@ -2054,10 +2054,6 @@ herr_t H5I_vlock_enter(hid_t id) { if (H5I_is_default_id(id)) HGOTO_DONE(SUCCEED); - /* Try to get ID info - if it was already released, do nothing */ - if ((id_info_ptr = H5I__find_id(id)) == NULL) - HGOTO_DONE(SUCCEED); - /* Ensure that we have exlusive write access to the ID */ do { info_k = atomic_load(&(id_info_ptr->k)); @@ -2122,10 +2118,6 @@ herr_t H5I_vlock_exit(hid_t id) { memset(&info_k, 0, sizeof(info_k)); memset(&mod_info_k, 0, sizeof(mod_info_k)); - /* No-op for default ids */ - if (H5I_is_default_id(id)) - HGOTO_DONE(SUCCEED); - /* Get ID info */ if ((id_info_ptr = H5I__find_id(id)) == NULL) /* Assume ID was released during the course of the API routine */