From baf19b9193d8fdb60b9e504b73df2ae21b2400ab Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Mon, 23 Dec 2024 16:05:30 -0600 Subject: [PATCH] Remove duplicate default ID check --- src/H5I.c | 8 -------- 1 file changed, 8 deletions(-) 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 */