]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mvebu: fix return value check in armada_xp_pmsu_cpufreq_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 22 Jul 2014 14:18:08 +0000 (22:18 +0800)
committerJason Cooper <jason@lakedaemon.net>
Wed, 23 Jul 2014 12:31:13 +0000 (12:31 +0000)
commit2a401bdebe09c39a3e245309937814a09498ef57
tree17da421708cd39346b57614ca8678aecb1b03513
parent4d31809d6b620735e629a26f2524b71f451793ad
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 <yongjun_wei@trendmicro.com.cn>
Link: https://lkml.kernel.org/r/1406038688-26417-1-git-send-email-weiyj_lk@163.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/pmsu.c