Thermal/int340x: Clear the error value of the last acpi_bus_get_device() call
authorIlkka Koskinen <ilkka.koskinen@linux.intel.com>
Tue, 9 Dec 2014 02:01:31 +0000 (18:01 -0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 9 Dec 2014 06:05:05 +0000 (14:05 +0800)
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>
drivers/thermal/int340x_thermal/acpi_thermal_rel.c

index ac5c40558b844c4acfdc0d5c7f9acb8705f68283..e4e61b3fb11e8b101abbf86cd1b58f0ed5ffb235 100644 (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;