From: Markus Elfring Date: Fri, 21 Nov 2014 16:11:49 +0000 (+0100) Subject: thermal: Exynos: Deletion of unnecessary checks before two function calls X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~58^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3e19567fa85e1a0dab02205b89b2908084ecadd;p=pandora-kernel.git thermal: Exynos: Deletion of unnecessary checks before two function calls 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 --- Reading git-diff-tree failed