Tag: d3e19567fa85e1a0dab02205b89b2908084ecadd

thermal: Exynos: Deletion of unnecessary checks before two function calls

Author: Markus Elfring <elfring@users.sourceforge.net> 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 Signed-off-by: Eduardo Valentin — drivers/thermal/samsung/exynos_thermal_common.c | 9 +++—— 1 file changed, 3 insertions(+), 6 deletions(-) …

Continue reading