summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5G.c b/src/H5G.c
index dcd3fd3..fd6f130 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -182,13 +182,11 @@ H5Gopen(hid_t file_id, const char *name)
herr_t
H5Gclose(hid_t grp_id)
{
- H5G_t *grp = NULL;
-
FUNC_ENTER(H5Gclose, FAIL);
/* Check args */
if (H5_GROUP != H5A_group(grp_id) ||
- NULL == (grp = H5A_object(grp_id))) {
+ NULL == H5A_object(grp_id)) {
HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a group");
}
/*