summaryrefslogtreecommitdiffstats
path: root/src/H5HFsection.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-01-08 19:13:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-01-08 19:13:29 (GMT)
commit326fa329675b34d97987268eee981d12924e1ca6 (patch)
tree913df5416e893a33c008526f72e95e38c30ca734 /src/H5HFsection.c
parent8b5da53df2e15da42e4443c6da8cc45f867b50a8 (diff)
downloadhdf5-326fa329675b34d97987268eee981d12924e1ca6.zip
hdf5-326fa329675b34d97987268eee981d12924e1ca6.tar.gz
hdf5-326fa329675b34d97987268eee981d12924e1ca6.tar.bz2
[svn-r18079] Description:
Correct #3 by removing impossible to reach code. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug
Diffstat (limited to 'src/H5HFsection.c')
-rw-r--r--src/H5HFsection.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/H5HFsection.c b/src/H5HFsection.c
index efd0515..472edb8 100644
--- a/src/H5HFsection.c
+++ b/src/H5HFsection.c
@@ -490,7 +490,6 @@ H5HF_sect_single_new(hsize_t sect_off, size_t sect_size,
H5HF_indirect_t *parent, unsigned par_entry)
{
H5HF_free_section_t *sect = NULL; /* 'Single' free space section to add */
- hbool_t par_incr = FALSE; /* Indicate that parent iblock has been incremented */
H5HF_free_section_t *ret_value; /* Return value */
FUNC_ENTER_NOAPI_NOINIT(H5HF_sect_single_new)
@@ -509,7 +508,6 @@ H5HF_sect_single_new(hsize_t sect_off, size_t sect_size,
if(sect->u.single.parent) {
if(H5HF_iblock_incr(sect->u.single.parent) < 0)
HGOTO_ERROR(H5E_HEAP, H5E_CANTINC, NULL, "can't increment reference count on shared indirect block")
- par_incr = TRUE;
} /* end if */
sect->u.single.par_entry = par_entry;
@@ -518,13 +516,6 @@ H5HF_sect_single_new(hsize_t sect_off, size_t sect_size,
done:
if(!ret_value && sect) {
- /* Check if we should decrement parent ref. count */
- if(par_incr) {
- HDassert(sect->u.single.parent);
- if(H5HF_iblock_decr(sect->u.single.parent) < 0)
- HDONE_ERROR(H5E_HEAP, H5E_CANTDEC, NULL, "can't decrement reference count on parent indirect block")
- } /* end if */
-
/* Release the section */
(void)H5FL_FREE(H5HF_free_section_t, sect);
} /* end if */