Skip to content

Commit 74f43ed

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/THERMAL] Remove unused code in update poll
Signed-off-by: GuEe-GUI <[email protected]>
1 parent aaf18e4 commit 74f43ed

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: components/drivers/thermal/thermal.c

-4
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,6 @@ void rt_thermal_zone_device_update(struct rt_thermal_zone_device *zdev, rt_ubase
638638
int trip_low;
639639
rt_bool_t low_set = RT_FALSE;
640640

641-
if (i >= zdev->trips_nr)
642-
{
643-
goto _call_notifier;
644-
}
645641
rt_memcpy(&trip, &zdev->trips[i], sizeof(trip));
646642

647643
trip_low = trip.temperature - trip.hysteresis;

0 commit comments

Comments
 (0)