summaryrefslogtreecommitdiffstats
path: root/src/H5Dlayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Dlayout.c')
-rw-r--r--src/H5Dlayout.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/H5Dlayout.c b/src/H5Dlayout.c
index fd7e5b9..95d29c1 100644
--- a/src/H5Dlayout.c
+++ b/src/H5Dlayout.c
@@ -489,14 +489,9 @@ H5D__layout_oh_create(H5F_t *file, H5O_t *oh, H5D_t *dset, hid_t dapl_id)
* Allocate storage if space allocate time is early; otherwise delay
* allocation until later.
*/
- if (fill_prop->alloc_time == H5D_ALLOC_TIME_EARLY) {
- H5D_io_info_t io_info;
-
- io_info.dset = dset;
-
- if (H5D__alloc_storage(&io_info, H5D_ALLOC_CREATE, FALSE, NULL) < 0)
+ if (fill_prop->alloc_time == H5D_ALLOC_TIME_EARLY)
+ if (H5D__alloc_storage(dset, H5D_ALLOC_CREATE, FALSE, NULL) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize storage")
- }
/* Update external storage message, if it's used */
if (dset->shared->dcpl_cache.efl.nused > 0) {