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]
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user