Skip to content

Commit

Permalink
Fix Static Analysis Issues for thermal module.
Browse files Browse the repository at this point in the history
Tracked-On: OAM-114632
Signed-off-by: Ranjan, Rajani <rajani.ranjan@intel.com>
  • Loading branch information
RajaniRanjan authored and sysopenci committed Jan 5, 2024
1 parent f8c92cf commit 492d748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thermal/Thermal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ void Thermal::CheckThermalServerity() {
kTemp_2_0.throttlingStatus = (ThrottlingSeverity)i;
{
std::lock_guard<std::mutex> _lock(thermal_callback_mutex_);
for (auto cb : callbacks_) {
for (auto& cb : callbacks_) {
cb.callback->notifyThrottling(kTemp_2_0);
}
}
Expand All @@ -500,7 +500,7 @@ void Thermal::CheckThermalServerity() {
kTemp_2_0_1.throttlingStatus = (ThrottlingSeverity)i;
{
std::lock_guard<std::mutex> _lock(thermal_callback_mutex_);
for (auto cb : callbacks_) {
for (auto& cb : callbacks_) {
cb.callback->notifyThrottling(kTemp_2_0_1);
}
}
Expand Down

0 comments on commit 492d748

Please sign in to comment.