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: bb5132a66c]
Cette révision appartient à :
Chris Freehill a révisé 2021-01-06 11:01:07 -05:00
1 Parent 76323354d1
révision 55e86989c1
1 fichier modifié
-2
-2
Voir le fichier
@@ -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;
};