diff options
author | Xiaowen Wu <wuxiaowe@ncsa.uiuc.edu> | 2005-03-24 03:02:15 (GMT) |
---|---|---|
committer | Xiaowen Wu <wuxiaowe@ncsa.uiuc.edu> | 2005-03-24 03:02:15 (GMT) |
commit | 0e5ae5c4ba8663cbc8842f10eba57a6426ba2f04 (patch) | |
tree | d214bee86ed734f67e1e40e11aad7d3f72e2d9c0 /src/H5Pdcpl.c | |
parent | 3a64d64ff95ec780a9f1fc4bd30d7d02fa3f62a0 (diff) | |
download | hdf5-0e5ae5c4ba8663cbc8842f10eba57a6426ba2f04.zip hdf5-0e5ae5c4ba8663cbc8842f10eba57a6426ba2f04.tar.gz hdf5-0e5ae5c4ba8663cbc8842f10eba57a6426ba2f04.tar.bz2 |
[svn-r10396] Purpose:
Minor modification.
Description:
Remove some redundant codes.
Solution:
Platforms tested:
heping
Misc. update:
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r-- | src/H5Pdcpl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c index 33de459..0334c65 100644 --- a/src/H5Pdcpl.c +++ b/src/H5Pdcpl.c @@ -1297,11 +1297,9 @@ H5Pset_scaleoffset(hid_t plist_id, unsigned min_bits) if(NULL == (plist = H5I_object(plist_id))) HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID"); - if(min_bits < 0) - HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "minimum number of bits can't be positive"); - - /* Set the parameter for the filter */ - /* if min_bits is zero, the scaleoffset filter will automatically calculate min_bits */ + /* Set the parameter for the filter + * if min_bits is zero, the scaleoffset filter will automatically calculate min_bits + */ cd_values[0] = min_bits; /* Add the scaleoffset filter */ |