summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_filters.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r--tools/h5repack/h5repack_filters.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c
index a3ba70d..9f3b192 100644
--- a/tools/h5repack/h5repack_filters.c
+++ b/tools/h5repack/h5repack_filters.c
@@ -191,8 +191,7 @@ int apply_filters(const char* name, /* object name from traverse list */
hsize_t *dims, /* dimensions of dataset */
hid_t dcpl_id, /* dataset creation property list */
hid_t type_id, /* dataset datatype */
- pack_opt_t *options, /* repack options */
- int *apply_f)
+ pack_opt_t *options) /* repack options */
{
int nfilters; /* number of filters in DCPL */
hsize_t chsize[64]; /* chunk size in elements */
@@ -200,11 +199,9 @@ int apply_filters(const char* name, /* object name from traverse list */
int i;
pack_info_t obj;
- if (rank==0)
- {
- *apply_f=0;
+ if (rank==0) /* scalar dataset, do not apply */
return 0;
- }
+
/*-------------------------------------------------------------------------
* initialize the assigment object