linux/drivers/thermal
Eduardo Valentin 0c12b5ac82 thermal: ti-soc-thermal: remove usage of IS_ERR_OR_NULL
This patch changes the driver to avoid the usage of IS_ERR_OR_NULL()
macro. This macro can lead to dangerous results, like returning
success (0) during a failure scenario (NULL pointer handling).

For this reason this patch is changing the driver after
revisiting the code. These are the cases:
i. For cases in which IS_ERR_OR_NULL() is used for checking
return values of functions that returns either PTR_ERR()
or a valid pointer, it has been translated to IS_ERR() check only.
ii. For cases that a NULL check is still needed, it has been
translated to if (!ptr || IS_ERR(ptr)).

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-06-13 10:14:00 +08:00
..
ti-soc-thermal thermal: ti-soc-thermal: remove usage of IS_ERR_OR_NULL 2013-06-13 10:14:00 +08:00
Kconfig thermal: introduce TI SoC thermal driver 2013-05-28 10:40:37 +08:00
Makefile thermal: introduce TI SoC thermal driver 2013-05-28 10:40:37 +08:00
armada_thermal.c thermal: Add driver for Armada 370/XP SoC thermal management 2013-04-02 21:04:09 +08:00
cpu_cooling.c thermal: cpu_cooling: alignment improvements 2013-04-27 09:25:55 +08:00
db8500_cpufreq_cooling.c thermal: db8500_cpufreq_cooling: remove usage of IS_ERR_OR_NULL() 2013-04-27 09:28:38 +08:00
db8500_thermal.c thermal: db8500: Fix missing mutex_unlock() in probe error paths 2013-03-26 22:08:08 +08:00
dove_thermal.c thermal: dove: Fix thermal sensor formula 2013-03-26 22:13:10 +08:00
exynos_thermal.c Merge branch 'exynos-fix' of .git into next 2013-04-25 00:04:06 +08:00
fair_share.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
intel_powerclamp.c Fix mis-merge of intel_powerclamp.c resulting in compile error 2013-02-28 20:23:09 -08:00
kirkwood_thermal.c thermal: kirkwood: Fix thermal sensor formula 2013-03-26 22:12:20 +08:00
rcar_thermal.c thermal: rcar: add pm_runtime_xxx() support 2013-04-02 21:18:39 +08:00
spear_thermal.c drivers/thermal/spear_thermal.c: use devm_clk_get 2013-01-04 15:38:25 +08:00
step_wise.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
thermal_core.c thermal: thermal_core: remove usage of IS_ERR_OR_NULL 2013-04-27 09:28:25 +08:00
thermal_core.h Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
user_space.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00