Skip to content

Commit eca3f0a

Browse files
committed
ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()
Commit dabc621 ("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: dabc621 ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 868a471 commit eca3f0a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/acpi/thermal.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ static int acpi_thermal_suspend(struct device *dev)
10141014
static int acpi_thermal_resume(struct device *dev)
10151015
{
10161016
struct acpi_thermal *tz;
1017-
int i, j, power_state, result;
1017+
int i, j, power_state;
10181018

10191019
if (!dev)
10201020
return -EINVAL;
@@ -1028,9 +1028,8 @@ static int acpi_thermal_resume(struct device *dev)
10281028
break;
10291029

10301030
for (j = 0; j < tz->trips.active[i].devices.count; j++) {
1031-
result = acpi_bus_update_power(
1032-
tz->trips.active[i].devices.handles[j],
1033-
&power_state);
1031+
acpi_bus_update_power(tz->trips.active[i].devices.handles[j],
1032+
&power_state);
10341033
}
10351034
}
10361035

0 commit comments

Comments
 (0)