mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r10396] Purpose:
Minor modification. Description: Remove some redundant codes. Solution: Platforms tested: heping Misc. update:
This commit is contained in:
parent
3a64d64ff9
commit
0e5ae5c4ba
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user