diff options
author | Ilkka Koskinen <ilkka.koskinen@linux.intel.com> | 2014-12-08 18:01:31 -0800 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-12-09 14:05:05 +0800 |
commit | e413ad7cca9f541659ac0ddf8f37e2bcfade365a (patch) | |
tree | 3d24725a6528bda480422059b2f35a9b7321d21e /drivers/thermal/int340x_thermal | |
parent | 341203167f9138073853cecd1f02d180bf9924ca (diff) | |
download | op-kernel-dev-e413ad7cca9f541659ac0ddf8f37e2bcfade365a.zip op-kernel-dev-e413ad7cca9f541659ac0ddf8f37e2bcfade365a.tar.gz |
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>
Diffstat (limited to 'drivers/thermal/int340x_thermal')
-rw-r--r-- | drivers/thermal/int340x_thermal/acpi_thermal_rel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c b/drivers/thermal/int340x_thermal/acpi_thermal_rel.c index ac5c405..e4e61b3 100644 --- a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c +++ b/drivers/thermal/int340x_thermal/acpi_thermal_rel.c @@ -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; |