ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2023 18:49:08 +0000 (20:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2023 18:55:29 +0000 (20:55 +0200)
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>
drivers/acpi/thermal.c

index a329b0d..2fc02e9 100644 (file)
@@ -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);
                }
        }