diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index e8098f695c84895f25c1d0939df1d9a9aa5fadb9..122eba77360cb44018063694be76def4726587d0 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1833,7 +1833,6 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int mask) } } - for (indx = 0; indx < tz->trips; indx++) { /* create trip type attribute */ snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH,