From: Wei Yongjun Date: Tue, 22 Jul 2014 14:18:08 +0000 (+0800) Subject: ARM: mvebu: fix return value check in armada_xp_pmsu_cpufreq_init() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~122^2~8^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b03e119fff8a06f55faaaa11c6259829fe81cbb4;p=pandora-kernel.git ARM: mvebu: fix return value check in armada_xp_pmsu_cpufreq_init() In case of error, the function clk_get() 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 Link: https://lkml.kernel.org/r/1406038688-26417-1-git-send-email-weiyj_lk@163.com Signed-off-by: Jason Cooper --- Reading git-diff-tree failed