summaryrefslogtreecommitdiff
path: root/drivers/acpi/thermal.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-07-25 20:06:37 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-01 14:04:30 +0200
commitdabc621a311007d78bfcf60f8125c5e8c33ded7b (patch)
treed85196eb0f7ecbd45db72873c805496321c6d449 /drivers/acpi/thermal.c
parent5f641174a12b8a876a4101201a21ef4675ecc014 (diff)
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>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r--drivers/acpi/thermal.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 3163a40f02e3..3aab121cd410 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -115,7 +115,6 @@ struct acpi_thermal_active {
struct acpi_handle_list devices;
unsigned long temperature;
bool valid;
- bool enabled;
};
struct acpi_thermal_trips {
@@ -1039,15 +1038,10 @@ static int acpi_thermal_resume(struct device *dev)
if (!tz->trips.active[i].valid)
break;
- tz->trips.active[i].enabled = true;
for (j = 0; j < tz->trips.active[i].devices.count; j++) {
result = acpi_bus_update_power(
tz->trips.active[i].devices.handles[j],
&power_state);
- if (result || (power_state != ACPI_STATE_D0)) {
- tz->trips.active[i].enabled = false;
- break;
- }
}
}