diff options
Diffstat (limited to 'tools/h5repack/h5repack_parse.c')
-rw-r--r-- | tools/h5repack/h5repack_parse.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tools/h5repack/h5repack_parse.c b/tools/h5repack/h5repack_parse.c index f7188bf..d684da8 100644 --- a/tools/h5repack/h5repack_parse.c +++ b/tools/h5repack/h5repack_parse.c @@ -412,7 +412,7 @@ obj_list_t* parse_filter(const char *str, */ case H5Z_FILTER_DEFLATE: - if (filt->cd_values[0]<0 || filt->cd_values[0]>9 ) + if (filt->cd_values[0]>9 ) { if (obj_list) free(obj_list); error_msg(progname, "invalid compression parameter in <%s>\n",str); @@ -447,19 +447,7 @@ obj_list_t* parse_filter(const char *str, } break; - /*------------------------------------------------------------------------- - * H5Z_FILTER_SCALEOFFSET - *------------------------------------------------------------------------- - */ - - case H5Z_FILTER_SCALEOFFSET: - if (filt->cd_values[0]<0 ) - { - if (obj_list) free(obj_list); - error_msg(progname, "invalid compression parameter in <%s>\n",str); - exit(1); - } - break; + }; return obj_list; |