summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/H5P.c b/src/H5P.c
index a22a679..873c258 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -258,17 +258,13 @@ H5P_create(H5P_class_t type, H5P_t *plist)
herr_t
H5Pclose(hid_t plist_id)
{
- H5P_class_t type;
- void *plist = NULL;
-
FUNC_ENTER(H5Pclose, FAIL);
H5TRACE1("e","i",plist_id);
/* Check arguments */
if (plist_id==H5P_DEFAULT)
HRETURN(SUCCEED);
- if ((type=H5P_get_class (plist_id))<0 ||
- NULL==(plist=H5I_object (plist_id))) {
+ if (H5P_get_class (plist_id)<0) {
HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list");
}