ti-soc-thermal: Delete an unnecessary check before the function call "cpufreq_cooling...
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Feb 2015 10:15:14 +0000 (11:15 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 24 Feb 2015 18:26:56 +0000 (14:26 -0400)
commit9ca9be2b09ea1b5289b936e917c8a93119a65736
treefab1f1f8d8e0e27759a8626b1483eea831160a0c
parent3992b62da72d124698bf6157889ab45197ddec69
ti-soc-thermal: Delete an unnecessary check before the function call "cpufreq_cooling_unregister"

The cpufreq_cooling_unregister() function tests whether its argument is NULL
and then returns 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>
drivers/thermal/ti-soc-thermal/ti-thermal-common.c