From: Ilkka Koskinen Date: Tue, 9 Dec 2014 02:01:31 +0000 (-0800) Subject: Thermal/int340x: Clear the error value of the last acpi_bus_get_device() call X-Git-Tag: firefly_0821_release~176^2~2645^2^3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e413ad7cca9f541659ac0ddf8f37e2bcfade365a;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Jacob Pan --- diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c b/drivers/thermal/int340x_thermal/acpi_thermal_rel.c index ac5c40558b84..e4e61b3fb11e 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;