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]
Ta zmiana jest zawarta w:
%! (template.HTML=
Chris Freehill)złożyło 2021-01-06 11:01:07 -05:00
1 rodzic
76323354d1
złożenie
55e86989c1
Plik 1 zmieniony
-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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika