Thermal/int340x: Clear the error value of the last acpi_bus_get_device() 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>
This commit is contained in:
Ilkka Koskinen 2014-12-08 18:01:31 -08:00 committed by Zhang Rui
parent 341203167f
commit e413ad7cca
1 changed files with 2 additions and 0 deletions

View File

@ -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;