From 74f43edd6c4f12f3902d1f64774b925361d74e5b Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Tue, 11 Feb 2025 13:54:26 +0800 Subject: [PATCH] [DM/THERMAL] Remove unused code in update poll Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/thermal/thermal.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/drivers/thermal/thermal.c b/components/drivers/thermal/thermal.c index 026957f00e..9343fe137a 100644 --- a/components/drivers/thermal/thermal.c +++ b/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; rt_bool_t low_set = RT_FALSE; - if (i >= zdev->trips_nr) - { - goto _call_notifier; - } rt_memcpy(&trip, &zdev->trips[i], sizeof(trip)); trip_low = trip.temperature - trip.hysteresis;