The functions cpufreq_cooling_unregister() and thermal_zone_device_unregister() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> |
||
|---|---|---|
| .. | ||
| int340x_thermal | ||
| samsung | ||
| st | ||
| ti-soc-thermal | ||
| armada_thermal.c | ||
| cpu_cooling.c | ||
| db8500_cpufreq_cooling.c | ||
| db8500_thermal.c | ||
| dove_thermal.c | ||
| fair_share.c | ||
| gov_bang_bang.c | ||
| imx_thermal.c | ||
| intel_powerclamp.c | ||
| intel_soc_dts_thermal.c | ||
| Kconfig | ||
| kirkwood_thermal.c | ||
| Makefile | ||
| of-thermal.c | ||
| rcar_thermal.c | ||
| spear_thermal.c | ||
| step_wise.c | ||
| thermal_core.c | ||
| thermal_core.h | ||
| thermal_hwmon.c | ||
| thermal_hwmon.h | ||
| user_space.c | ||
| x86_pkg_temp_thermal.c | ||