From 55e86989c1954f036a655bcb40f0c6673dec6811 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Sat, 26 Dec 2020 20:41:29 -0600 Subject: [PATCH] Remove adding of bogus hwmon label entries If we fail to find an expected temperature or voltage label file, previously we were attempting to re-add a mapping of file index to sensor types. Attempting to insert a map item that is already present has no effect, so there should be no functional change. This was a remnant of old code that should have been deleted. Change-Id: Ie6f8a62f619a1ae58756e0fd891532434518cf78 [ROCm/amdsmi commit: bb5132a66ce1a84787593675a1e6b521f361682e] --- projects/amdsmi/src/rocm_smi_monitor.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/amdsmi/src/rocm_smi_monitor.cc b/projects/amdsmi/src/rocm_smi_monitor.cc index 1d6de35aba..97ceeaacc1 100755 --- a/projects/amdsmi/src/rocm_smi_monitor.cc +++ b/projects/amdsmi/src/rocm_smi_monitor.cc @@ -335,7 +335,6 @@ Monitor::setTempSensorLabelMap(void) { temp_type_index_map_[t_type] = file_index; index_temp_type_map_.insert({file_index, t_type}); } - index_temp_type_map_.insert({file_index, t_type}); return 0; }; @@ -373,7 +372,6 @@ Monitor::setVoltSensorLabelMap(void) { volt_type_index_map_.insert({t_type, file_index}); index_volt_type_map_.insert({file_index, t_type}); } - index_volt_type_map_.insert({file_index, t_type}); return 0; };