summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-10 20:49:08 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-10 20:55:29 +0200
commiteca3f0a8ff86b8f21061033043d243e4a466da05 (patch)
tree86345cda7f3718935d4bd3a2926149711cdb4100
parent868a4715a88114e914144fe07a630cd7230ab848 (diff)
downloadlinux-stable-eca3f0a8ff86b8f21061033043d243e4a466da05.tar.gz
linux-stable-eca3f0a8ff86b8f21061033043d243e4a466da05.tar.bz2
linux-stable-eca3f0a8ff86b8f21061033043d243e4a466da05.zip
ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()
Commit dabc621a3110 ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") left behind a variable that is only assigned to and never read, so drop it now. Fixes: dabc621a3110 ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/thermal.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index a329b0dce78f..2fc02e90c400 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -1014,7 +1014,7 @@ static int acpi_thermal_suspend(struct device *dev)
static int acpi_thermal_resume(struct device *dev)
{
struct acpi_thermal *tz;
- int i, j, power_state, result;
+ int i, j, power_state;
if (!dev)
return -EINVAL;
@@ -1028,9 +1028,8 @@ static int acpi_thermal_resume(struct device *dev)
break;
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);
+ acpi_bus_update_power(tz->trips.active[i].devices.handles[j],
+ &power_state);
}
}