4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-13 04:19:37 +08:00

[DM/THERMAL] Remove unused code in update poll

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2025-02-11 13:54:26 +08:00 committed by Rbb666
parent aaf18e497c
commit 74f43edd6c

View File

@ -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;