From a550bf2687885b25057ae927f625b036ee76ffc7 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 23 Aug 2018 21:47:14 -0500 Subject: [PATCH] Remove redundant initialization. LinkInfo is already initialized to zero in its default constructor. Change-Id: Ifa4fb886cce9b474c6879c9c82744044ab394082 [ROCm/ROCR-Runtime commit: 2843988dd76122989e1690d9a04cc13fe691d872] --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index f1a8b35c80..00d52b9f1f 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -255,9 +255,6 @@ void Runtime::DestroyAgents() { void Runtime::SetLinkCount(size_t num_link) { const size_t last_index = GetIndexLinkInfo(0, num_link); link_matrix_.resize(last_index); - - memset(&link_matrix_[0], 0, - link_matrix_.size() * sizeof(hsa_amd_memory_pool_link_info_t)); } void Runtime::RegisterLinkInfo(uint32_t node_id_from, uint32_t node_id_to,