summaryrefslogtreecommitdiffstats
path: root/src/H5Snone.c
diff options
context:
space:
mode:
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 */