Commit eca3f0a8 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()

Commit dabc621a ("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: dabc621a ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active")
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 868a4715
...@@ -1014,7 +1014,7 @@ static int acpi_thermal_suspend(struct device *dev) ...@@ -1014,7 +1014,7 @@ static int acpi_thermal_suspend(struct device *dev)
static int acpi_thermal_resume(struct device *dev) static int acpi_thermal_resume(struct device *dev)
{ {
struct acpi_thermal *tz; struct acpi_thermal *tz;
int i, j, power_state, result; int i, j, power_state;
if (!dev) if (!dev)
return -EINVAL; return -EINVAL;
...@@ -1028,9 +1028,8 @@ static int acpi_thermal_resume(struct device *dev) ...@@ -1028,9 +1028,8 @@ static int acpi_thermal_resume(struct device *dev)
break; break;
for (j = 0; j < tz->trips.active[i].devices.count; j++) { for (j = 0; j < tz->trips.active[i].devices.count; j++) {
result = acpi_bus_update_power( acpi_bus_update_power(tz->trips.active[i].devices.handles[j],
tz->trips.active[i].devices.handles[j], &power_state);
&power_state);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment