From 18d75c9985a750e547d80f4b19c881ede4ed5625 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 5 Jul 2007 10:43:22 -0500 Subject: [svn-r13942] Description: Minor code & comment cleanups Tested on: Mac OS X/32 10.4.10 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2) --- src/H5Dcompact.c | 5 ++--- src/H5Dcontig.c | 5 ++--- src/H5Dfill.c | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/H5Dcompact.c b/src/H5Dcompact.c index 38e6cad..d18eef9 100644 --- a/src/H5Dcompact.c +++ b/src/H5Dcompact.c @@ -110,9 +110,8 @@ H5D_compact_fill(H5D_t *dset, hid_t dxpl_id) done: /* Release the fill buffer info, if it's been initialized */ - if(fb_info_init) - if(H5D_fill_term(&fb_info) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "Can't release fill buffer info") + if(fb_info_init && H5D_fill_term(&fb_info) < 0) + HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "Can't release fill buffer info") FUNC_LEAVE_NOAPI(ret_value) } /* end H5D_compact_fill() */ diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c index ac5cd50..c83a88b 100644 --- a/src/H5Dcontig.c +++ b/src/H5Dcontig.c @@ -259,9 +259,8 @@ H5D_contig_fill(H5D_t *dset, hid_t dxpl_id) done: /* Release the fill buffer info, if it's been initialized */ - if(fb_info_init) - if(H5D_fill_term(&fb_info) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "Can't release fill buffer info") + if(fb_info_init && H5D_fill_term(&fb_info) < 0) + HDONE_ERROR(H5E_DATASET, H5E_CANTFREE, FAIL, "Can't release fill buffer info") FUNC_LEAVE_NOAPI(ret_value) } /* end H5D_contig_fill() */ diff --git a/src/H5Dfill.c b/src/H5Dfill.c index b2e8e9d..2d52713 100644 --- a/src/H5Dfill.c +++ b/src/H5Dfill.c @@ -158,8 +158,7 @@ done: Use the selection in the dataspace to fill elements in a memory buffer. GLOBAL VARIABLES COMMENTS, BUGS, ASSUMPTIONS - If "fill" parameter is NULL, use all zeros as fill value. If "fill_type" - parameter is NULL, use "buf_type" for the fill value datatype. + If "fill" parameter is NULL, use all zeros as fill value. EXAMPLES REVISION LOG Raymond Lu - 20 March 2007 -- cgit v0.12