Skip to content

Commit dabc621

Browse files
committed
ACPI: thermal: Drop enabled flag from struct acpi_thermal_active
The enabled field of struct acpi_thermal_active is only updated and never read, so drop it along with the related code. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5f64117 commit dabc621

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/acpi/thermal.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ struct acpi_thermal_active {
115115
struct acpi_handle_list devices;
116116
unsigned long temperature;
117117
bool valid;
118-
bool enabled;
119118
};
120119

121120
struct acpi_thermal_trips {
@@ -1039,15 +1038,10 @@ static int acpi_thermal_resume(struct device *dev)
10391038
if (!tz->trips.active[i].valid)
10401039
break;
10411040

1042-
tz->trips.active[i].enabled = true;
10431041
for (j = 0; j < tz->trips.active[i].devices.count; j++) {
10441042
result = acpi_bus_update_power(
10451043
tz->trips.active[i].devices.handles[j],
10461044
&power_state);
1047-
if (result || (power_state != ACPI_STATE_D0)) {
1048-
tz->trips.active[i].enabled = false;
1049-
break;
1050-
}
10511045
}
10521046
}
10531047

0 commit comments

Comments
 (0)