summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2014-11-18 16:05:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2014-11-18 16:05:46 (GMT)
commita956537fd3020a6e6a3ab25c6a9ceb8034e229c1 (patch)
tree41598619292bb34d141350ae1305133d2af92f02
parentfc31e90ca50fa6792a838e4debbce8f3f6fb044a (diff)
downloadhdf5-a956537fd3020a6e6a3ab25c6a9ceb8034e229c1.zip
hdf5-a956537fd3020a6e6a3ab25c6a9ceb8034e229c1.tar.gz
hdf5-a956537fd3020a6e6a3ab25c6a9ceb8034e229c1.tar.bz2
[svn-r25821] Description:
Clean up formatting and remove unused variables.
-rw-r--r--src/H5Dbtree.c7
-rw-r--r--src/H5VM.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/H5Dbtree.c b/src/H5Dbtree.c
index d5349a6..510c465 100644
--- a/src/H5Dbtree.c
+++ b/src/H5Dbtree.c
@@ -844,7 +844,6 @@ static herr_t
H5D__btree_idx_create(const H5D_chk_idx_info_t *idx_info)
{
H5D_chunk_common_ud_t udata; /* User data for B-tree callback */
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
@@ -915,7 +914,6 @@ H5D__btree_idx_is_space_alloc(const H5O_storage_chunk_t *storage)
static herr_t
H5D__btree_idx_insert_addr(const H5D_chk_idx_info_t *idx_info, H5D_chunk_ud_t *udata)
{
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
@@ -957,7 +955,6 @@ done:
static herr_t
H5D__btree_idx_get_addr(const H5D_chk_idx_info_t *idx_info, H5D_chunk_ud_t *udata)
{
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
@@ -1046,7 +1043,6 @@ H5D__btree_idx_iterate(const H5D_chk_idx_info_t *idx_info,
H5D_chunk_cb_func_t chunk_cb, void *chunk_udata)
{
H5D_btree_it_ud_t udata; /* User data for B-tree iterator callback */
- H5O_loc_t oloc; /* Temporary object header location for dataset */
int ret_value; /* Return value */
FUNC_ENTER_STATIC
@@ -1091,7 +1087,6 @@ done:
static herr_t
H5D__btree_idx_remove(const H5D_chk_idx_info_t *idx_info, H5D_chunk_common_ud_t *udata)
{
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
@@ -1133,7 +1128,6 @@ done:
static herr_t
H5D__btree_idx_delete(const H5D_chk_idx_info_t *idx_info)
{
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
@@ -1281,7 +1275,6 @@ H5D__btree_idx_size(const H5D_chk_idx_info_t *idx_info, hsize_t *index_size)
H5D_chunk_common_ud_t udata; /* User-data for loading B-tree nodes */
H5B_info_t bt_info; /* B-tree info */
hbool_t shared_init = FALSE; /* Whether shared B-tree info is initialized */
- H5O_loc_t oloc; /* Temporary object header location for dataset */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC
diff --git a/src/H5VM.c b/src/H5VM.c
index c57f343..179ec7b 100644
--- a/src/H5VM.c
+++ b/src/H5VM.c
@@ -1089,7 +1089,7 @@ H5VM_array_offset_pre(unsigned n, const hsize_t *acc, const hsize_t *offset)
HDassert(offset);
/* Compute offset in array */
- for (i=(int)(n-1), ret_value=0; i>=0; --i)
+ for(i = (int)(n - 1), ret_value = 0; i >= 0; --i)
ret_value += acc[i] * offset[i];
FUNC_LEAVE_NOAPI(ret_value)