Skip to content

Commit

Permalink
Thermal/int340x: Clear the error value of the last acpi_bus_get_devic…
Browse files Browse the repository at this point in the history
…e() call

Previously the return value of the last acpi_bus_get_device() was
returned. However, since we only report those issues, it should be
cleared to continue as expected.

Signed-off-by: Ilkka Koskinen <ilkka.koskinen@linux.intel.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
  • Loading branch information
Ilkka Koskinen authored and Zhang Rui committed Dec 9, 2014
1 parent 3412031 commit e413ad7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/thermal/int340x_thermal/acpi_thermal_rel.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trtp,
pr_warn("Failed to get target ACPI device\n");
}

result = 0;

*trtp = trts;
/* don't count bad entries */
*trt_count -= nr_bad_entries;
Expand Down

0 comments on commit e413ad7

Please sign in to comment.