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/rocm_smi_lib commit: bb5132a66c]
이 커밋은 다음에 포함됨:
Chris Freehill
2020-12-26 20:41:29 -06:00
부모 185ebc2f07
커밋 d71ba4c666
-2
파일 보기
@@ -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;
};