summaryrefslogtreecommitdiffstats
path: root/src/H5Snone.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-04-17 20:31:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-04-17 20:31:50 (GMT)
commit880d8357bf87cf0761e53ecb0c7b1fb1edbd1528 (patch)
treed71b5c1c36fdbd5571079c8782477308e95284eb /src/H5Snone.c
parent7456a9293d0672d8c327f58951b30aa911d95dc2 (diff)
downloadhdf5-880d8357bf87cf0761e53ecb0c7b1fb1edbd1528.zip
hdf5-880d8357bf87cf0761e53ecb0c7b1fb1edbd1528.tar.gz
hdf5-880d8357bf87cf0761e53ecb0c7b1fb1edbd1528.tar.bz2
[svn-r8376] Purpose:
Code cleanup Description: Update null dataspace changes to try to write older version of dataspace information whenever possible. Refactor common code to only one location. Allow I/O operations to succeed on null dataspaces. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest
Diffstat (limited to 'src/H5Snone.c')
-rw-r--r--src/H5Snone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Snone.c b/src/H5Snone.c
index f91ef2f..e07f5ae 100644
--- a/src/H5Snone.c
+++ b/src/H5Snone.c
@@ -665,8 +665,8 @@ herr_t H5S_select_none (H5S_t *space)
/* Check args */
assert(space);
- /* Remove current selection first. NULL data space either has no selection or selection is none. */
- if((space->extent.type != H5S_NULL) && (*space->select.release)(space)<0)
+ /* Remove current selection first */
+ if((*space->select.release)(space)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't release hyperslab");
/* Set selection type */