[PATCH 1/2] thermal: helpers: Check return value of get_temp

2016-06-06 Thread Rhyland Klein
Check the return value of get_temp, which can fail. If it does, then unlock and return the error code. Signed-off-by: Rhyland Klein --- drivers/thermal/thermal_helpers.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/thermal_helpers.c

[PATCH 1/2] thermal: helpers: Check return value of get_temp

2016-06-06 Thread Rhyland Klein
Check the return value of get_temp, which can fail. If it does, then unlock and return the error code. Signed-off-by: Rhyland Klein --- drivers/thermal/thermal_helpers.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/thermal_helpers.c