29 lines
1012 B
Diff
29 lines
1012 B
Diff
From: Egbert Eich <eich@suse.com>
|
|
Date: Sat Feb 11 18:08:15 2023 +0100
|
|
Subject: Remove duplicate code
|
|
Patch-mainline: Not yet
|
|
Git-repo: https://github.com/HDFGroup/hdf5
|
|
Git-commit: 539bca81e2b5713b1c6c5723d742377fb92c1ac1
|
|
References:
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
src/H5Oattr.c | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
|
|
index 3ef0b99aa4..19d3abfb4c 100644
|
|
--- a/src/H5Oattr.c
|
|
+++ b/src/H5Oattr.c
|
|
@@ -222,10 +222,6 @@ H5O_attr_decode(H5F_t *f, H5O_t *open_oh, unsigned H5_ATTR_UNUSED mesg_flags, un
|
|
else
|
|
p += attr->shared->ds_size;
|
|
|
|
- /* Get the datatype's size */
|
|
- if (0 == (dt_size = H5T_get_size(attr->shared->dt)))
|
|
- HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, NULL, "unable to get datatype size")
|
|
-
|
|
/* Get the datatype & dataspace sizes */
|
|
if (0 == (dt_size = H5T_get_size(attr->shared->dt)))
|
|
HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, NULL, "unable to get datatype size")
|