From: Wei Yongjun Date: Fri, 25 Oct 2013 13:55:42 +0000 (+0800) Subject: thermal: cpu_cooling: fix return value check in cpufreq_cooling_register() X-Git-Tag: v3.13-rc1~94^2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b9bcd76d13716cc0e0ab053f8c1ae41f47636e;p=pandora-kernel.git thermal: cpu_cooling: fix return value check in cpufreq_cooling_register() In case of error, the function thermal_cooling_device_register() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun Signed-off-by: Zhang Rui --- Reading git-diff-tree failed