Skip to content

Commit

Permalink
Remove duplicate default ID check
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Dec 24, 2024
1 parent 9245121 commit 13c35d4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/H5I.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 13c35d4

Please sign in to comment.