linux/drivers/thermal/samsung
Julia Lawall 60acb3891f thermal: exynos: fix error return code
Set the return variable to an error code as done elsewhere in the function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}

// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2014-01-02 09:54:45 +08:00
..
exynos_thermal_common.c thermal: exynos: Remove check for thermal device pointer at exynos_report_trigger() 2013-10-15 10:10:42 -04:00
exynos_thermal_common.h thermal: exynos: Add driver support for exynos5440 TMU sensor 2013-08-13 09:52:03 -04:00
exynos_tmu_data.c thermal: exynos: Provide initial setting for TMU's test MUX address at Exynos4412 2013-10-15 10:10:42 -04:00
exynos_tmu_data.h thermal: exynos: Provide initial setting for TMU's test MUX address at Exynos4412 2013-10-15 10:10:42 -04:00
exynos_tmu.c thermal: exynos: fix error return code 2014-01-02 09:54:45 +08:00
exynos_tmu.h thermal: exynos: Provide initial setting for TMU's test MUX address at Exynos4412 2013-10-15 10:10:42 -04:00
Kconfig thermal: exynos: Clean up non-DT remnants 2013-08-29 09:37:31 -04:00
Makefile thermal: exynos: Bifurcate exynos tmu driver and configuration data 2013-08-13 09:52:00 -04:00