mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()
Commitdabc621a31
("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:dabc621a31
("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
868a4715a8
commit
eca3f0a8ff
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue