summaryrefslogtreecommitdiffstats
path: root/src/H5Gdense.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gdense.c')
-rw-r--r--src/H5Gdense.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/H5Gdense.c b/src/H5Gdense.c
index cd0b242..86f8353 100644
--- a/src/H5Gdense.c
+++ b/src/H5Gdense.c
@@ -482,12 +482,9 @@ H5G_dense_lookup_cb(const void *_lnk, void *_user_lnk)
HDassert(lnk);
HDassert(user_lnk);
- /* Check if we want the link information */
- if(user_lnk) {
- /* Copy link information */
- if(H5O_msg_copy(H5O_LINK_ID, lnk, user_lnk) == NULL)
- HGOTO_ERROR(H5E_SYM, H5E_CANTCOPY, H5_ITER_ERROR, "can't copy link message")
- } /* end if */
+ /* Copy link information */
+ if(H5O_msg_copy(H5O_LINK_ID, lnk, user_lnk) == NULL)
+ HGOTO_ERROR(H5E_SYM, H5E_CANTCOPY, H5_ITER_ERROR, "can't copy link message")
done:
FUNC_LEAVE_NOAPI(ret_value)