diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-01-08 18:57:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-01-08 18:57:09 (GMT) |
commit | 450e8db6f2b0930cda72ae943043dc1e80af289b (patch) | |
tree | ab10edabee36d2046f9e0b2705f32c32fc540886 /src/H5Omessage.c | |
parent | f866495ba032016b1ed8a094cc4e82bb27a146fa (diff) | |
download | hdf5-450e8db6f2b0930cda72ae943043dc1e80af289b.zip hdf5-450e8db6f2b0930cda72ae943043dc1e80af289b.tar.gz hdf5-450e8db6f2b0930cda72ae943043dc1e80af289b.tar.bz2 |
[svn-r18076] Description:
Correct Coverity issue #1 by removing dead code
Tested on:
Mac OS X/32 (amazon) debug
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r-- | src/H5Omessage.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/H5Omessage.c b/src/H5Omessage.c index 4a9ecb5..8fa8085 100644 --- a/src/H5Omessage.c +++ b/src/H5Omessage.c @@ -1859,7 +1859,6 @@ H5O_msg_copy_file(const H5O_msg_class_t *type, H5F_t *file_src, void *native_src, H5F_t *file_dst, hbool_t *recompute_size, H5O_copy_t *cpy_info, void *udata, hid_t dxpl_id) { - void *native_mesg = NULL; void *ret_value; FUNC_ENTER_NOAPI_NOINIT(H5O_msg_copy_file) @@ -1876,16 +1875,10 @@ H5O_msg_copy_file(const H5O_msg_class_t *type, H5F_t *file_src, /* The copy_file callback will return an H5O_shared_t only if the message * to be copied is a committed datatype. */ - if(NULL == (native_mesg = (type->copy_file)(file_src, native_src, file_dst, recompute_size, cpy_info, udata, dxpl_id))) + if(NULL == (ret_value = (type->copy_file)(file_src, native_src, file_dst, recompute_size, cpy_info, udata, dxpl_id))) HGOTO_ERROR(H5E_OHDR, H5E_CANTCOPY, NULL, "unable to copy object header message to file") - /* Set return value */ - ret_value = native_mesg; - done: - if(NULL == ret_value && native_mesg) - H5O_msg_free(type->id, native_mesg); - FUNC_LEAVE_NOAPI(ret_value) } /* end H5O_msg_copy_file() */ |