浏览代码

[DM/THERMAL] Remove unused code in update poll

Signed-off-by: GuEe-GUI <2991707448@qq.com>
GuEe-GUI 2 月之前
父节点
当前提交
74f43edd6c
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      components/drivers/thermal/thermal.c

+ 0 - 4
components/drivers/thermal/thermal.c

@@ -638,10 +638,6 @@ void rt_thermal_zone_device_update(struct rt_thermal_zone_device *zdev, rt_ubase
             int trip_low;
             int trip_low;
             rt_bool_t low_set = RT_FALSE;
             rt_bool_t low_set = RT_FALSE;
 
 
-            if (i >= zdev->trips_nr)
-            {
-                goto _call_notifier;
-            }
             rt_memcpy(&trip, &zdev->trips[i], sizeof(trip));
             rt_memcpy(&trip, &zdev->trips[i], sizeof(trip));
 
 
             trip_low = trip.temperature - trip.hysteresis;
             trip_low = trip.temperature - trip.hysteresis;